1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Bug#6726 - failure to parse NOT BETWEEN

Fix and test for parse bug


mysql-test/r/func_test.result:
  Bug#6726
    Test for parse bug
mysql-test/t/func_test.test:
  Bug#6726
    Test for parse bug
sql/sql_yacc.yy:
  Bug#6726
    Parser was confused by NOT in lookahead
This commit is contained in:
unknown
2005-02-03 23:08:43 +00:00
parent 888c211805
commit 150cf58f8f
3 changed files with 29 additions and 10 deletions

View File

@@ -107,3 +107,12 @@ select 5.1 mod 3, 5.1 mod -3, -5.1 mod 3, -5.1 mod -3;
#
select 5 mod 3, 5 mod -3, -5 mod 3, -5 mod -3;
#
# Bug#6726: NOT BETWEEN parse failure
#
create table t1 (a int, b int);
insert into t1 values (1,2), (2,3), (3,4), (4,5);
select * from t1 where a not between 1 and 2;
select * from t1 where a not between 1 and 2 and b not between 3 and 4;
drop table t1;