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:
@ -366,10 +366,12 @@ inline bool setup_fields_with_no_wrap(THD *thd, Ref_ptr_array ref_pointer_array,
|
||||
bool allow_sum_func)
|
||||
{
|
||||
bool res;
|
||||
thd->lex->select_lex.no_wrap_view_item= TRUE;
|
||||
SELECT_LEX *first= thd->lex->first_select_lex();
|
||||
DBUG_ASSERT(thd->lex->current_select == first);
|
||||
first->no_wrap_view_item= TRUE;
|
||||
res= setup_fields(thd, ref_pointer_array, item, column_usage,
|
||||
sum_func_list, NULL, allow_sum_func);
|
||||
thd->lex->select_lex.no_wrap_view_item= FALSE;
|
||||
first->no_wrap_view_item= FALSE;
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user