diff options
author | Aleksey Midenkov <midenok@gmail.com> | 2018-02-20 15:35:09 +0300 |
---|---|---|
committer | Robert Bindar <robert@mariadb.org> | 2020-03-11 08:40:37 +0200 |
commit | 8fa1b6bb88be39001b98bab071b957da3c271a17 (patch) | |
tree | eca6b8acc1c403fff3c7ee69e4f7de5646b4dc7d | |
parent | fd2dc9c3fdfb73fa450db9fecd72044bb0554040 (diff) | |
download | mariadb-git-8fa1b6bb88be39001b98bab071b957da3c271a17.tar.gz |
MDEV-15724 - Possible crash in parser
Parser: uninitialized Lex->create_last_non_select_table under
mysql_unpack_partition() fix.
Tested with main, parts suites.
-rw-r--r-- | sql/sql_lex.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index 6e6c79c0e6c..58c91ab21e7 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -203,6 +203,7 @@ init_lex_with_single_table(THD *thd, TABLE *table, LEX *lex) table->map= 1; //To ensure correct calculation of const item table_list->table= table; table_list->cacheable_table= false; + lex->create_last_non_select_table= table_list; return FALSE; } |