summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2018-02-20 15:35:09 +0300
committerRobert Bindar <robert@mariadb.org>2020-03-11 08:40:37 +0200
commit8fa1b6bb88be39001b98bab071b957da3c271a17 (patch)
treeeca6b8acc1c403fff3c7ee69e4f7de5646b4dc7d
parentfd2dc9c3fdfb73fa450db9fecd72044bb0554040 (diff)
downloadmariadb-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.cc1
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;
}