Browse Source

MDEV-5816: Stored programs: validation of stored program statements

Follow-up patch that fixes issue with missing set up of versioning
condition for query involving a versioning partitioned table.
10.11-MDEV-5816-2
Dmitry Shulga 3 years ago
parent
commit
3f531b450a
  1. 2
      sql/sp_instr.cc

2
sql/sp_instr.cc

@ -694,6 +694,7 @@ LEX* sp_lex_instr::parse_expr(THD *thd, sp_head *sp, LEX *sp_instr_lex)
list sp_instr->free_list on executing of every SP instruction.
*/
Query_arena backup;
state= STMT_INITIALIZED_FOR_SP;
thd->set_n_backup_active_arena(this, &backup);
thd->free_list= nullptr;
@ -753,7 +754,6 @@ LEX* sp_lex_instr::parse_expr(THD *thd, sp_head *sp, LEX *sp_instr_lex)
*/
const char *m_tmp_query_bak= sp->m_tmp_query;
sp->m_tmp_query= sql_query.c_ptr();
bool parsing_failed= parse_sql(thd, &parser_state, nullptr);
sp->m_tmp_query= m_tmp_query_bak;

Loading…
Cancel
Save