Skip to content

Commit

Permalink
A cleanup for MDEV-15818 Fix shift-reduce conflicts in the new 10.3 s…
Browse files Browse the repository at this point in the history
…yntax

Fixing PERIOD to PERIOD_SYM in the %left command.
  • Loading branch information
abarkov committed May 22, 2018
1 parent b9cf26f commit fe3bf13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions sql/sql_yacc.yy
Original file line number Diff line number Diff line change
Expand Up @@ -890,10 +890,10 @@ bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize);
%parse-param { THD *thd }
%lex-param { THD *thd }
/*
Currently there are 72 shift/reduce conflicts.
Currently there are 68 shift/reduce conflicts.
We should not introduce new conflicts any more.
*/
%expect 72
%expect 68

/*
Comments for TOKENS.
Expand Down Expand Up @@ -1731,7 +1731,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize);
and until NEXT_SYM / PREVIOUS_SYM.
*/
%left PREC_BELOW_IDENTIFIER_OPT_SPECIAL_CASE
%left TRANSACTION_SYM TIMESTAMP PERIOD SYSTEM
%left TRANSACTION_SYM TIMESTAMP PERIOD_SYM SYSTEM


/*
Expand Down
6 changes: 3 additions & 3 deletions sql/sql_yacc_ora.yy
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize);
%parse-param { THD *thd }
%lex-param { THD *thd }
/*
Currently there are 73 shift/reduce conflicts.
Currently there are 69 shift/reduce conflicts.
We should not introduce new conflicts any more.
*/
%expect 73
%expect 69

/*
Comments for TOKENS.
Expand Down Expand Up @@ -1123,7 +1123,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize);
and until NEXT_SYM / PREVIOUS_SYM.
*/
%left PREC_BELOW_IDENTIFIER_OPT_SPECIAL_CASE
%left TRANSACTION_SYM TIMESTAMP PERIOD SYSTEM
%left TRANSACTION_SYM TIMESTAMP PERIOD_SYM SYSTEM


/*
Expand Down

0 comments on commit fe3bf13

Please sign in to comment.