@@ -4945,7 +4945,10 @@ create_body:
4945
4945
CREATE TABLE t1 (SELECT 1);
4946
4946
*/
4947
4947
| '(' create_select_query_specification ')'
4948
- { Select->set_braces(1);} union_opt {}
4948
+ | '(' create_select_query_specification ')'
4949
+ { Select->set_braces(1);} union_list {}
4950
+ | '(' create_select_query_specification ')'
4951
+ { Select->set_braces(1);} union_order_or_limit {}
4949
4952
| create_like
4950
4953
{
4951
4954
@@ -4977,7 +4980,10 @@ create_select_query_expression_body:
4977
4980
| SELECT_SYM create_select_part2 create_select_part3_union_not_ready
4978
4981
create_select_part4
4979
4982
| '(' create_select_query_specification ')'
4980
- { Select->set_braces(1);} union_opt {}
4983
+ | '(' create_select_query_specification ')'
4984
+ { Select->set_braces(1);} union_list {}
4985
+ | '(' create_select_query_specification ')'
4986
+ { Select->set_braces(1);} union_order_or_limit {}
4981
4987
;
4982
4988
4983
4989
opt_create_partitioning:
@@ -8536,12 +8542,16 @@ select:
8536
8542
8537
8543
select_init:
8538
8544
SELECT_SYM select_options_and_item_list select_init3
8539
- | '(' select_paren ')' union_opt
8545
+ | '(' select_paren ')'
8546
+ | '(' select_paren ')' union_list
8547
+ | '(' select_paren ')' union_order_or_limit
8540
8548
;
8541
8549
8542
8550
union_list_part2:
8543
8551
SELECT_SYM select_options_and_item_list select_init3_union_query_term
8544
- | '(' select_paren_union_query_term ')' union_opt
8552
+ | '(' select_paren_union_query_term ')'
8553
+ | '(' select_paren_union_query_term ')' union_list
8554
+ | '(' select_paren_union_query_term ')' union_order_or_limit
8545
8555
;
8546
8556
8547
8557
select_paren:
@@ -16433,12 +16443,6 @@ union_list_view:
16433
16443
}
16434
16444
;
16435
16445
16436
- union_opt:
16437
- /* Empty */
16438
- | union_order_or_limit
16439
- | union_list
16440
- ;
16441
-
16442
16446
union_order_or_limit:
16443
16447
{
16444
16448
LEX *lex= thd->lex;
0 commit comments