diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-10-19 12:57:00 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-10-19 12:57:00 +0400 |
commit | e156db85a75b2a15b89ebc5f65eedb07e0574420 (patch) | |
tree | cbfe89a343d723c0cc7e9317f1ca2bfd41e9b46a /sql/sp_rcontext.h | |
parent | f5e09b5f8f768c8758a024bcb6297851144a8f39 (diff) | |
download | mariadb-git-e156db85a75b2a15b89ebc5f65eedb07e0574420.tar.gz |
sp_rcontext::sp cleanup
- Renaming sp_rcontext::sp to sp_rcontext:m_sp for consistency
with other sp_rcontext_members, and for consistency with the
same purpose member Item_sp_variable::m_sp.
- Passing a "const sp_head*" pointer to sp_rcontext::sp_rcontext()
and to sp_rcontext::create().
Initializing sp_rcontext::m_sp right in the constructor
instead of having a separate initialization after "new sp_rcontext"
or sp_rcontext::create().
- Adding the "const" qualifier to sp_rcontext::m_sp and Item_sp_variable::m_sp
Diffstat (limited to 'sql/sp_rcontext.h')
-rw-r--r-- | sql/sp_rcontext.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/sp_rcontext.h b/sql/sp_rcontext.h index 9a4a8e27032..5e5bca62982 100644 --- a/sql/sp_rcontext.h +++ b/sql/sp_rcontext.h @@ -70,6 +70,7 @@ public: /// /// @return valid sp_rcontext object or NULL in case of OOM-error. static sp_rcontext *create(THD *thd, + const sp_head *owner, const sp_pcontext *root_parsing_ctx, Field *return_value_fld, Row_definition_list &defs); @@ -77,7 +78,8 @@ public: ~sp_rcontext(); private: - sp_rcontext(const sp_pcontext *root_parsing_ctx, + sp_rcontext(const sp_head *owner, + const sp_pcontext *root_parsing_ctx, Field *return_value_fld, bool in_sub_stmt); @@ -180,7 +182,7 @@ public: #ifndef DBUG_OFF /// The stored program for which this runtime context is created. Used for /// checking if correct runtime context is used for variable handling. - sp_head *sp; + const sp_head *m_sp; #endif ///////////////////////////////////////////////////////////////////////// |