1
0
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:
Monty
2018-01-24 16:28:54 +02:00
parent c269f1d6fe
commit 0dbe3dbe79
4 changed files with 83 additions and 13 deletions

View File

@ -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: