summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/binary.result4
-rw-r--r--mysql-test/t/binary.test10
2 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/r/binary.result b/mysql-test/r/binary.result
index c5f9961699d..cbd95e03232 100644
--- a/mysql-test/r/binary.result
+++ b/mysql-test/r/binary.result
@@ -31,3 +31,7 @@ hello hello
a b
a b
hello hello
+b
+b
+NULL
+b
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;