summaryrefslogtreecommitdiff
path: root/sql/sql_lex.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-07-12 11:57:47 +0400
committerAlexander Barkov <bar@mariadb.org>2017-07-12 11:57:47 +0400
commit7c3df72d0a627aa6c12af14d57b2664af7f8b380 (patch)
tree9653ac4cee54b8e8a0210023c7abfe5f00ec4fb4 /sql/sql_lex.h
parent31b35118490357063047755d849ab4c8687ce938 (diff)
downloadmariadb-git-7c3df72d0a627aa6c12af14d57b2664af7f8b380.tar.gz
MDEV-13298 Change sp_head::m_chistics from a pointer to a structure
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r--sql/sql_lex.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h
index 695a397c25f..3c7c99dff3d 100644
--- a/sql/sql_lex.h
+++ b/sql/sql_lex.h
@@ -1285,9 +1285,17 @@ struct st_sp_chistics
enum enum_sp_suid_behaviour suid;
bool detistic;
enum enum_sp_data_access daccess;
+ void init() { bzero(this, sizeof(*this)); }
+ void set(const st_sp_chistics &other) { *this= other; }
};
+class Sp_chistics: public st_sp_chistics
+{
+public:
+ Sp_chistics() { init(); }
+};
+
struct st_trg_chistics: public st_trg_execution_order
{