1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-4752: Segfault during parsing of illegal query

Fix of nested join parsing of illegal query.
This commit is contained in:
unknown
2013-07-04 18:37:55 +03:00
parent 6fb53d3013
commit 874bb25137
4 changed files with 17 additions and 0 deletions

View File

@ -6276,6 +6276,8 @@ TABLE_LIST *st_select_lex::nest_last_join(THD *thd)
for (uint i=0; i < 2; i++)
{
TABLE_LIST *table= join_list->pop();
if (!table)
DBUG_RETURN(NULL);
table->join_list= embedded_list;
table->embedding= ptr;
embedded_list->push_back(table);