diff options
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index a7c33cbc504..b6476963727 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -4547,6 +4547,7 @@ public: TMP_TABLE_SHARE* save_tmp_table_share(TABLE *table); void restore_tmp_table_share(TMP_TABLE_SHARE *share); + bool inline is_main_lex(LEX *lex) { return lex == &main_lex; } private: /* Whether a lock has been acquired? */ bool m_tmp_tables_locked; @@ -4724,7 +4725,7 @@ public: /** Switch to a sublex, to parse a substatement or an expression. */ - void set_local_lex(sp_lex_local *sublex) + void set_local_lex(sp_lex_local *sublex, LEX *stmtlex) { DBUG_ASSERT(lex->sphead); lex= stmt_lex= sublex; @@ -4743,7 +4744,7 @@ public: See also sp_head::merge_lex(). */ - bool restore_from_local_lex_to_old_lex(LEX *oldlex); + bool restore_from_local_lex_to_old_lex(LEX *oldlex, LEX *oldstmtlex); Item *sp_fix_func_item(Item **it_addr); Item *sp_prepare_func_item(Item **it_addr, uint cols= 1); @@ -6134,7 +6135,8 @@ public: inline bool add_item_to_list(THD *thd, Item *item) { - return thd->lex->current_select->add_item_to_list(thd, item); + bool res= thd->lex->current_select->add_item_to_list(thd, item); + return res; } inline bool add_value_to_list(THD *thd, Item *value) |