Commit f4b165ae authored by serg@serg.mysql.com's avatar serg@serg.mysql.com

make the test more obvious

parent cd3f3867
...@@ -45,30 +45,30 @@ name ...@@ -45,30 +45,30 @@ name
drop table t1,t2; drop table t1,t2;
create table t1 (a char(10) not null, b char(10) binary not null,key (a), key(b)); 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 "); insert into t1 values ("hello ","hello "),("hello2 ","hello2 ");
select * from t1 where a="hello"; select concat("-",a,"-",b,"-") from t1 where a="hello";
a b concat("-",a,"-",b,"-")
hello hello -hello-hello-
select * from t1 where a="hello "; select concat("-",a,"-",b,"-") from t1 where a="hello ";
a b concat("-",a,"-",b,"-")
hello hello -hello-hello-
select * from t1 ignore index (a) where a="hello "; select concat("-",a,"-",b,"-") from t1 ignore index (a) where a="hello ";
a b concat("-",a,"-",b,"-")
hello hello -hello-hello-
select * from t1 where b="hello"; select concat("-",a,"-",b,"-") from t1 where b="hello";
a b concat("-",a,"-",b,"-")
hello hello -hello-hello-
select * from t1 where b="hello "; select concat("-",a,"-",b,"-") from t1 where b="hello ";
a b concat("-",a,"-",b,"-")
hello hello -hello-hello-
select * from t1 ignore index (b) where b="hello "; select concat("-",a,"-",b,"-") from t1 ignore index (b) where b="hello ";
a b concat("-",a,"-",b,"-")
hello hello -hello-hello-
alter table t1 modify b tinytext not null, drop key b, add key (b(100)); alter table t1 modify b tinytext not null, drop key b, add key (b(100));
select * from t1 where b="hello "; select concat("-",a,"-",b,"-") from t1 where b="hello ";
a b concat("-",a,"-",b,"-")
select * from t1 ignore index (b) where b="hello "; select concat("-",a,"-",b,"-") from t1 ignore index (b) where b="hello ";
a b concat("-",a,"-",b,"-")
hello hello -hello-hello-
drop table t1; drop table t1;
create table t1 (b char(8)); create table t1 (b char(8));
insert into t1 values(NULL); insert into t1 values(NULL);
......
...@@ -30,16 +30,16 @@ drop table t1,t2; ...@@ -30,16 +30,16 @@ drop table t1,t2;
create table t1 (a char(10) not null, b char(10) binary not null,key (a), key(b)); 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 "); insert into t1 values ("hello ","hello "),("hello2 ","hello2 ");
select * from t1 where a="hello"; select concat("-",a,"-",b,"-") from t1 where a="hello";
select * from t1 where a="hello "; select concat("-",a,"-",b,"-") from t1 where a="hello ";
select * from t1 ignore index (a) where a="hello "; select concat("-",a,"-",b,"-") from t1 ignore index (a) where a="hello ";
select * from t1 where b="hello"; select concat("-",a,"-",b,"-") from t1 where b="hello";
select * from t1 where b="hello "; select concat("-",a,"-",b,"-") from t1 where b="hello ";
select * from t1 ignore index (b) where b="hello "; select concat("-",a,"-",b,"-") from t1 ignore index (b) where b="hello ";
# blob test # blob test
alter table t1 modify b tinytext not null, drop key b, add key (b(100)); alter table t1 modify b tinytext not null, drop key b, add key (b(100));
select * from t1 where b="hello "; select concat("-",a,"-",b,"-") from t1 where b="hello ";
select * from t1 ignore index (b) where b="hello "; select concat("-",a,"-",b,"-") from t1 ignore index (b) where b="hello ";
drop table t1; drop table t1;
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment