Commit 804b00e8 authored by Alexander Barkov's avatar Alexander Barkov

An sql_yacc.yy clean-up

- Moving opt_union_order_or_limit inside union_opt,
  as it's not used in other places any more.
- Changing union_opt to have no type.
  Earlier (before all MDEV-8909 dependency tasks) it had the <num> type,
  and it's return value was used to generate errors.
  Now union_opt does not need a return value because the grammar
  disallows ORDER and LIMIT clauses in wrong context.
parent c80c3f67
...@@ -1783,8 +1783,8 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize); ...@@ -1783,8 +1783,8 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
udf_type opt_local opt_no_write_to_binlog udf_type opt_local opt_no_write_to_binlog
opt_temporary all_or_any opt_distinct opt_temporary all_or_any opt_distinct
opt_ignore_leaves fulltext_options union_option opt_ignore_leaves fulltext_options union_option
opt_not opt_union_order_or_limit opt_not
union_opt select_derived_init transaction_access_mode_types select_derived_init transaction_access_mode_types
opt_natural_language_mode opt_query_expansion opt_natural_language_mode opt_query_expansion
opt_ev_status opt_ev_on_completion ev_on_completion opt_ev_comment opt_ev_status opt_ev_on_completion ev_on_completion opt_ev_comment
ev_alter_on_schedule_completion opt_ev_rename_to opt_ev_sql_stmt ev_alter_on_schedule_completion opt_ev_rename_to opt_ev_sql_stmt
...@@ -16434,15 +16434,11 @@ union_list_view: ...@@ -16434,15 +16434,11 @@ union_list_view:
; ;
union_opt: union_opt:
opt_union_order_or_limit /* Empty */
| union_list { $$= 1; } | union_order_or_limit
| union_list
; ;
opt_union_order_or_limit:
/* Empty */ { $$= 0; }
| union_order_or_limit { $$= 1; }
;
union_order_or_limit: union_order_or_limit:
{ {
LEX *lex= thd->lex; LEX *lex= thd->lex;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment