1
0
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:
Sergei Golubchik
2025-07-16 13:23:16 +02:00
parent 9a51709dba
commit db3e1edac3
3 changed files with 37 additions and 5 deletions

View File

@@ -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()
/*