summaryrefslogtreecommitdiff
path: root/mysql-test/r/binary.result
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2003-02-03 09:17:47 +0100
committerunknown <serg@serg.mysql.com>2003-02-03 09:17:47 +0100
commit56ca80efae6fc95356a5aa59d8202cabc55f9aed (patch)
treef2ba334c994906094124f3fe3932b9ef54226081 /mysql-test/r/binary.result
parent2479bdeae9e48165017d07f737dc30c911d305e1 (diff)
downloadmariadb-git-56ca80efae6fc95356a5aa59d8202cabc55f9aed.tar.gz
bug tests added
Diffstat (limited to 'mysql-test/r/binary.result')
-rw-r--r--mysql-test/r/binary.result19
1 files changed, 17 insertions, 2 deletions
diff --git a/mysql-test/r/binary.result b/mysql-test/r/binary.result
index 325accf00e7..4d5eb62cc71 100644
--- a/mysql-test/r/binary.result
+++ b/mysql-test/r/binary.result
@@ -43,16 +43,31 @@ name
select name from t2 where name between 'Ä' and 'Ö';
name
drop table t1,t2;
-create table t1 (a char(10) not null, b char(10) binary not null,index (a));
+create table t1 (a char(10) not null, b char(10) binary not null,key (a), key(b));
insert into t1 values ("hello ","hello "),("hello2 ","hello2 ");
+select * from t1 where a="hello";
+a b
+hello hello
select * from t1 where a="hello ";
a b
hello hello
-select * from t1 where b="hello ";
+select * from t1 ignore index (a) where a="hello ";
a b
+hello hello
select * from t1 where b="hello";
a b
hello hello
+select * from t1 where b="hello ";
+a b
+hello hello
+select * from t1 ignore index (b) where b="hello ";
+a b
+alter table t1 modify b tinytext not null, drop key b, add key (b(100));
+select * from t1 where b="hello ";
+a b
+select * from t1 ignore index (b) where b="hello ";
+a b
+hello hello
drop table t1;
create table t1 (b char(8));
insert into t1 values(NULL);