summaryrefslogtreecommitdiff
path: root/mysql-test/r/binary.result
diff options
context:
space:
mode:
authorgluh@gluh.mysql.r18.ru <>2004-08-23 20:17:14 +0400
committergluh@gluh.mysql.r18.ru <>2004-08-23 20:17:14 +0400
commit7b17daf21eaff42f60f3be320bea429597a75bbc (patch)
treea9c256c6840c53b62bd58731b44e7d73655b7689 /mysql-test/r/binary.result
parent0983295859186f41c17b771652163e4cb3c97c39 (diff)
downloadmariadb-git-7b17daf21eaff42f60f3be320bea429597a75bbc.tar.gz
Fix for bug #5134: WHERE x = 'bar' AND x LIKE BINARY 'bar' returns wrong results(for 4.1 tree)
Diffstat (limited to 'mysql-test/r/binary.result')
-rw-r--r--mysql-test/r/binary.result18
1 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/r/binary.result b/mysql-test/r/binary.result
index a4ced14bb12..68b507d1089 100644
--- a/mysql-test/r/binary.result
+++ b/mysql-test/r/binary.result
@@ -116,3 +116,21 @@ select collation(a), collation(b), collation(binary 'ccc') from t1 limit 1;
collation(a) collation(b) collation(binary 'ccc')
latin1_bin binary latin1_bin
drop table t1;
+create table t1( firstname char(20), lastname char(20));
+insert into t1 values ("john","doe"),("John","Doe");
+select * from t1 where firstname='john' and firstname like binary 'john';
+firstname lastname
+john doe
+select * from t1 where firstname='john' and binary 'john' = firstname;
+firstname lastname
+john doe
+select * from t1 where firstname='john' and firstname = binary 'john';
+firstname lastname
+john doe
+select * from t1 where firstname='John' and firstname like binary 'john';
+firstname lastname
+john doe
+select * from t1 where firstname='john' and firstname like binary 'John';
+firstname lastname
+John Doe
+drop table t1;