summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_test.test
diff options
context:
space:
mode:
authorunknown <acurtis@pcgem.rdg.cyberkinetica.com>2005-02-03 23:08:43 +0000
committerunknown <acurtis@pcgem.rdg.cyberkinetica.com>2005-02-03 23:08:43 +0000
commit150cf58f8f4c08f3b2ab3baa80bcd1c25a3bbcbb (patch)
treec8ea8fb63267a6fb0302a2a72c7c690d2557d2d4 /mysql-test/t/func_test.test
parent888c211805fdc501e078c7f8576821b121eb6637 (diff)
downloadmariadb-git-150cf58f8f4c08f3b2ab3baa80bcd1c25a3bbcbb.tar.gz
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
Diffstat (limited to 'mysql-test/t/func_test.test')
-rw-r--r--mysql-test/t/func_test.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/func_test.test b/mysql-test/t/func_test.test
index eb506a58870..732cdc12cae 100644
--- a/mysql-test/t/func_test.test
+++ b/mysql-test/t/func_test.test
@@ -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;