summaryrefslogtreecommitdiff
path: root/mysql-test/t/binary.test
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2002-09-18 02:00:56 +0300
committermonty@mashka.mysql.fi <>2002-09-18 02:00:56 +0300
commit74744466b17ae5785a4becad90e3a342cc724ea2 (patch)
treef22c90322c2755606b968a7823358f365eedc591 /mysql-test/t/binary.test
parentff993695a43914561488f71f3819bdf81d4df97a (diff)
downloadmariadb-git-74744466b17ae5785a4becad90e3a342cc724ea2.tar.gz
Fixed bug with BINARY NULL
Diffstat (limited to 'mysql-test/t/binary.test')
-rw-r--r--mysql-test/t/binary.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/binary.test b/mysql-test/t/binary.test
index 7853b013ae6..ef4249c39f8 100644
--- a/mysql-test/t/binary.test
+++ b/mysql-test/t/binary.test
@@ -31,3 +31,13 @@ select * from t1 where a="hello ";
select * from t1 where b="hello ";
select * from t1 where b="hello";
drop table t1;
+
+#
+# Test of binary and NULL
+#
+create table t1 (b char(8));
+insert into t1 values(NULL);
+select b from t1 where binary b like '';
+select b from t1 group by binary b like '';
+select b from t1 having binary b like '';
+drop table t1;