mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-11953: support of brackets in UNION/EXCEPT/INTERSECT operations
This commit is contained in:
@ -356,7 +356,7 @@ bool Sql_cmd_alter_table::execute(THD *thd)
|
||||
{
|
||||
LEX *lex= thd->lex;
|
||||
/* first SELECT_LEX (have special meaning for many of non-SELECTcommands) */
|
||||
SELECT_LEX *select_lex= &lex->select_lex;
|
||||
SELECT_LEX *select_lex= lex->first_select_lex();
|
||||
/* first table of first SELECT_LEX */
|
||||
TABLE_LIST *first_table= (TABLE_LIST*) select_lex->table_list.first;
|
||||
/*
|
||||
@ -506,7 +506,7 @@ error:
|
||||
bool Sql_cmd_discard_import_tablespace::execute(THD *thd)
|
||||
{
|
||||
/* first SELECT_LEX (have special meaning for many of non-SELECTcommands) */
|
||||
SELECT_LEX *select_lex= &thd->lex->select_lex;
|
||||
SELECT_LEX *select_lex= thd->lex->first_select_lex();
|
||||
/* first table of first SELECT_LEX */
|
||||
TABLE_LIST *table_list= (TABLE_LIST*) select_lex->table_list.first;
|
||||
|
||||
|
Reference in New Issue
Block a user