@@ -952,7 +952,6 @@ static bool sp_create_assignment_instr(THD *thd, bool no_lookahead)
952
952
List<Condition_information_item> *cond_info_list;
953
953
DYNCALL_CREATE_DEF *dyncol_def;
954
954
List<DYNCALL_CREATE_DEF> *dyncol_def_list;
955
- bool is_not_empty;
956
955
}
957
956
958
957
%{
@@ -1677,7 +1676,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
1677
1676
table_option opt_if_not_exists create_or_replace opt_no_write_to_binlog
1678
1677
opt_temporary all_or_any opt_distinct
1679
1678
opt_ignore_leaves fulltext_options spatial_type union_option
1680
- field_def opt_not
1679
+ field_def opt_not opt_union_order_or_limit
1681
1680
union_opt select_derived_init transaction_access_mode_types
1682
1681
opt_natural_language_mode opt_query_expansion
1683
1682
opt_ev_status opt_ev_on_completion ev_on_completion opt_ev_comment
@@ -1911,10 +1910,7 @@ END_OF_INPUT
1911
1910
'-' '+' '*' '/' '%' '(' ')'
1912
1911
',' '!' '{' '}' '&' '|' AND_SYM OR_SYM OR_OR_SYM BETWEEN_SYM CASE_SYM
1913
1912
THEN_SYM WHEN_SYM DIV_SYM MOD_SYM OR2_SYM AND_AND_SYM DELETE_SYM
1914
-
1915
- %type <is_not_empty> opt_union_order_or_limit
1916
-
1917
- %type <NONE> ROLE_SYM
1913
+ ROLE_SYM
1918
1914
1919
1915
%%
1920
1916
@@ -15728,14 +15724,13 @@ union_list:
15728
15724
;
15729
15725
15730
15726
union_opt:
15731
- /* Empty */ { $$= 0 ; }
15727
+ opt_union_order_or_limit
15732
15728
| union_list { $$= 1 ; }
15733
- | union_order_or_limit { $$= 1 ; }
15734
15729
;
15735
15730
15736
15731
opt_union_order_or_limit:
15737
- /* Empty */ { $$= false ; }
15738
- | union_order_or_limit { $$= true ; }
15732
+ /* Empty */ { $$= 0 ; }
15733
+ | union_order_or_limit { $$= 1 ; }
15739
15734
;
15740
15735
15741
15736
union_order_or_limit:
0 commit comments