mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-15057 Crash when using an unknown identifier as an SP parameter
It crashed because we accessed lex->current_select when it was a NULL, which is the case for SP parameters or local variables.
This commit is contained in:
@ -2881,6 +2881,7 @@ static bool do_execute_sp(THD *thd, sp_head *sp)
|
||||
result of previous parsing.
|
||||
*/
|
||||
thd->lex->current_select= NULL;
|
||||
thd->lex->in_sum_func= 0; // For Item_field::fix_fields()
|
||||
|
||||
/*
|
||||
We never write CALL statements into binlog:
|
||||
|
Reference in New Issue
Block a user