mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-36814 MariaDB 10.11.9 Signal 11 crash on second Stored Procedure call
don't reset thd->lex->current_select, it's not a leftover from previous parsing, it's set in reinit_stmt_before_use()
This commit is contained in:
@@ -3072,11 +3072,6 @@ static bool do_execute_sp(THD *thd, sp_head *sp)
|
||||
ha_rows select_limit= thd->variables.select_limit;
|
||||
thd->variables.select_limit= HA_POS_ERROR;
|
||||
|
||||
/*
|
||||
Reset current_select as it may point to random data as a
|
||||
result of previous parsing.
|
||||
*/
|
||||
thd->lex->current_select= NULL;
|
||||
thd->lex->in_sum_func= 0; // For Item_field::fix_fields()
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user