diff options
author | Monty <monty@mariadb.org> | 2018-01-24 16:28:54 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2018-01-24 16:38:47 +0200 |
commit | 0dbe3dbe7929c209614ab5803084c101b433299c (patch) | |
tree | 1e7258e9b3384dc427684f07810cbd29456ee03d /sql/sql_parse.cc | |
parent | c269f1d6feb2e5ac1aeef96fbd3a64d0085c2f7c (diff) | |
download | mariadb-git-0dbe3dbe7929c209614ab5803084c101b433299c.tar.gz |
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.
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 99c57fc7cfa..7e9159a9c9b 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -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: |