summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
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.cc
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.cc')
-rw-r--r--sql/sql_lex.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index 20e5fc0b450..112ce36b1bf 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -5831,10 +5831,9 @@ sp_head *LEX::make_sp_head(THD *thd, sp_name *name,
sp->init(this);
if (name)
sp->init_sp_name(thd, name);
- sp->m_chistics= &sp_chistics;
sphead= sp;
}
- bzero(&sp_chistics, sizeof(sp_chistics));
+ sp_chistics.init();
return sp;
}
@@ -6124,7 +6123,7 @@ bool LEX::maybe_start_compound_statement(THD *thd)
{
if (!make_sp_head(thd, NULL, TYPE_ENUM_PROCEDURE))
return true;
- sp_chistics.suid= SP_IS_NOT_SUID;
+ sphead->set_suid(SP_IS_NOT_SUID);
sphead->set_body_start(thd, thd->m_parser_state->m_lip.get_cpp_ptr());
}
return false;