Skip to content

Commit b1043ea

Browse files
committed
Revert "MDEV-30151 parse error 1=2 not between/in"
This reverts commit eba0991. A different patch with less shift-reduce conflicts is coming.
1 parent 4652260 commit b1043ea

File tree

4 files changed

+6
-25
lines changed

4 files changed

+6
-25
lines changed

mysql-test/main/parser.result

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,15 +1866,4 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp
18661866
EXECUTE IMMEDIATE 'CREATE PROCEDURE p() UPDATE t SET c=\'\'"abc';
18671867
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"abc' at line 1
18681868
SET @@sql_mode=@save_sql_mode;
1869-
#
1870-
# MDEV-30151 parse error 1=2 not between/in
1871-
#
1872-
select 1=2 not in (3,4);
1873-
1=2 not in (3,4)
1874-
1
1875-
select 1=2 not between 3 and 4;
1876-
1=2 not between 3 and 4
1877-
1
1878-
#
18791869
# End of 10.3 tests
1880-
#

mysql-test/main/parser.test

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1673,12 +1673,4 @@ EXECUTE IMMEDIATE 'CREATE PROCEDURE p() UPDATE t SET c=\'\'"abc';
16731673

16741674
SET @@sql_mode=@save_sql_mode;
16751675

1676-
--echo #
1677-
--echo # MDEV-30151 parse error 1=2 not between/in
1678-
--echo #
1679-
select 1=2 not in (3,4);
1680-
select 1=2 not between 3 and 4;
1681-
1682-
--echo #
16831676
--echo # End of 10.3 tests
1684-
--echo #

sql/sql_yacc.yy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize);
899899
/*
900900
We should not introduce any further shift/reduce conflicts.
901901
*/
902-
%expect 96
902+
%expect 85
903903

904904
/*
905905
Comments for TOKENS.
@@ -1687,7 +1687,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize);
16871687

16881688
%left PREC_BELOW_NOT
16891689

1690-
%nonassoc LOW_PRIORITY_NOT
1690+
%nonassoc NOT_SYM
16911691
%left '=' EQUAL_SYM GE '>' LE '<' NE
16921692
%nonassoc IS
16931693
%right BETWEEN_SYM
@@ -9840,7 +9840,7 @@ expr:
98409840
MYSQL_YYABORT;
98419841
}
98429842
}
9843-
| NOT_SYM expr %prec LOW_PRIORITY_NOT
9843+
| NOT_SYM expr %prec NOT_SYM
98449844
{
98459845
$$= negate_expression(thd, $2);
98469846
if (unlikely($$ == NULL))

sql/sql_yacc_ora.yy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize);
293293
/*
294294
We should not introduce any further shift/reduce conflicts.
295295
*/
296-
%expect 98
296+
%expect 87
297297

298298
/*
299299
Comments for TOKENS.
@@ -1081,7 +1081,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize);
10811081

10821082
%left PREC_BELOW_NOT
10831083

1084-
%nonassoc LOW_PRIORITY_NOT
1084+
%nonassoc NOT_SYM
10851085
%left '=' EQUAL_SYM GE '>' LE '<' NE
10861086
%nonassoc IS
10871087
%right BETWEEN_SYM
@@ -9797,7 +9797,7 @@ expr:
97979797
MYSQL_YYABORT;
97989798
}
97999799
}
9800-
| NOT_SYM expr %prec LOW_PRIORITY_NOT
9800+
| NOT_SYM expr %prec NOT_SYM
98019801
{
98029802
$$= negate_expression(thd, $2);
98039803
if (unlikely($$ == NULL))

0 commit comments

Comments
 (0)