Skip to content

Commit

Permalink
sql_yacc.yy:
Browse files Browse the repository at this point in the history
- 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).
  • Loading branch information
Alexander Barkov committed May 13, 2016
1 parent 47a7c31 commit 53775a9
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions sql/sql_yacc.yy
Original file line number Diff line number Diff line change
Expand Up @@ -8518,9 +8518,8 @@ select:
}
;

/* Need select_init2 for subselects. */
select_init:
SELECT_SYM select_init2
SELECT_SYM select_options_and_item_list select_init3
| '(' select_paren ')' union_opt
;

Expand Down Expand Up @@ -8558,17 +8557,15 @@ select_paren_derived:
| '(' select_paren_derived ')'
;

select_init2:
select_options_and_item_list
select_init3:
opt_table_expression
opt_select_lock_type
{
/* Parentheses carry no meaning here */
Lex->current_select->set_braces(false);
}
union_clause
| select_options_and_item_list
select_part3_union_not_ready
| select_part3_union_not_ready
opt_select_lock_type
{
/* Parentheses carry no meaning here */
Expand Down Expand Up @@ -16638,7 +16635,7 @@ view_select:
;

view_select_aux:
SELECT_SYM select_init2
SELECT_SYM select_options_and_item_list select_init3
| '(' select_paren ')' union_opt
;

Expand Down

0 comments on commit 53775a9

Please sign in to comment.