summaryrefslogtreecommitdiff
path: root/mysql-test/t/bool.test
diff options
context:
space:
mode:
authorantony@ltantony.rdg.cyberkinetica.homeunix.net <>2004-11-17 15:49:10 +0000
committerantony@ltantony.rdg.cyberkinetica.homeunix.net <>2004-11-17 15:49:10 +0000
commit8c0d21d18640a9256ddd8ed2674a2b95dbc934bf (patch)
tree64d4ad2d56e8db843d4d3030e373422b4c15938b /mysql-test/t/bool.test
parent505324c17a8adb0534f24ce1c21212448b87362c (diff)
downloadmariadb-git-8c0d21d18640a9256ddd8ed2674a2b95dbc934bf.tar.gz
WL#638 - Fix precedence for parsing NOT ... LIKE expression s
Rework parser expression rules Rework handling for "||" concat/or Eliminate some shift/reduce conflicts Add support for "xxx IS [ NOT ] truth_value"
Diffstat (limited to 'mysql-test/t/bool.test')
-rw-r--r--mysql-test/t/bool.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/bool.test b/mysql-test/t/bool.test
index b263ecfded2..644fdbfbf60 100644
--- a/mysql-test/t/bool.test
+++ b/mysql-test/t/bool.test
@@ -20,6 +20,16 @@ SELECT * FROM t1 where (1 AND a)=0;
SELECT * FROM t1 where (1 AND a)=1;
SELECT * FROM t1 where (1 AND a) IS NULL;
+# WL#638 - Behaviour of NOT does not follow SQL specification
+set sql_mode='broken_not';
+select * from t1 where not a between 2 and 3;
+set sql_mode=default;
+select * from t1 where not a between 2 and 3;
+
+# SQL boolean tests
+select a, a is false, a is true, a is unknown from t1;
+select a, a is not false, a is not true, a is not unknown from t1;
+
# Verify that NULL optimisation works in AND clause:
SET @a=0, @b=0;
SELECT * FROM t1 WHERE NULL AND (@a:=@a+1);