mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-11953: support of brackets in UNION/EXCEPT/INTERSECT operations
This commit is contained in:
@ -390,10 +390,13 @@ int mysql_load(THD *thd, const sql_exchange *ex, TABLE_LIST *table_list,
|
||||
if (mysql_handle_single_derived(thd->lex, table_list, DT_MERGE_FOR_INSERT) ||
|
||||
mysql_handle_single_derived(thd->lex, table_list, DT_PREPARE))
|
||||
DBUG_RETURN(TRUE);
|
||||
if (setup_tables_and_check_access(thd, &thd->lex->select_lex.context,
|
||||
&thd->lex->select_lex.top_join_list,
|
||||
if (setup_tables_and_check_access(thd,
|
||||
&thd->lex->first_select_lex()->context,
|
||||
&thd->lex->first_select_lex()->
|
||||
top_join_list,
|
||||
table_list,
|
||||
thd->lex->select_lex.leaf_tables, FALSE,
|
||||
thd->lex->first_select_lex()->leaf_tables,
|
||||
FALSE,
|
||||
INSERT_ACL | UPDATE_ACL,
|
||||
INSERT_ACL | UPDATE_ACL, FALSE))
|
||||
DBUG_RETURN(-1);
|
||||
|
Reference in New Issue
Block a user