Commit 53775a97 authored by Alexander Barkov's avatar Alexander Barkov

sql_yacc.yy:

- Moving select_options_and_item_list from select_init2
  to select_init and view_select_aux
- Renaming select_init2 to select_init3
This will simplify upcoming sql_yacc.yy fixes (e.g. MDEV-10035, MDEV-8909).
parent 47a7c314
...@@ -8518,9 +8518,8 @@ select: ...@@ -8518,9 +8518,8 @@ select:
} }
; ;
/* Need select_init2 for subselects. */
select_init: select_init:
SELECT_SYM select_init2 SELECT_SYM select_options_and_item_list select_init3
| '(' select_paren ')' union_opt | '(' select_paren ')' union_opt
; ;
...@@ -8558,8 +8557,7 @@ select_paren_derived: ...@@ -8558,8 +8557,7 @@ select_paren_derived:
| '(' select_paren_derived ')' | '(' select_paren_derived ')'
; ;
select_init2: select_init3:
select_options_and_item_list
opt_table_expression opt_table_expression
opt_select_lock_type opt_select_lock_type
{ {
...@@ -8567,8 +8565,7 @@ select_init2: ...@@ -8567,8 +8565,7 @@ select_init2:
Lex->current_select->set_braces(false); Lex->current_select->set_braces(false);
} }
union_clause union_clause
| select_options_and_item_list | select_part3_union_not_ready
select_part3_union_not_ready
opt_select_lock_type opt_select_lock_type
{ {
/* Parentheses carry no meaning here */ /* Parentheses carry no meaning here */
...@@ -16638,7 +16635,7 @@ view_select: ...@@ -16638,7 +16635,7 @@ view_select:
; ;
view_select_aux: view_select_aux:
SELECT_SYM select_init2 SELECT_SYM select_options_and_item_list select_init3
| '(' select_paren ')' union_opt | '(' select_paren ')' union_opt
; ;
......
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