bug tests added
This commit is contained in:
parent
2479bdeae9
commit
56ca80efae
@ -43,14 +43,29 @@ name
|
|||||||
select name from t2 where name between 'Ä' and 'Ö';
|
select name from t2 where name between 'Ä' and 'Ö';
|
||||||
name
|
name
|
||||||
drop table t1,t2;
|
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 ");
|
insert into t1 values ("hello ","hello "),("hello2 ","hello2 ");
|
||||||
|
select * from t1 where a="hello";
|
||||||
|
a b
|
||||||
|
hello hello
|
||||||
select * from t1 where a="hello ";
|
select * from t1 where a="hello ";
|
||||||
a b
|
a b
|
||||||
hello hello
|
hello 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 ";
|
select * from t1 where b="hello ";
|
||||||
a b
|
a b
|
||||||
select * from t1 where b="hello";
|
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
|
a b
|
||||||
hello hello
|
hello hello
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
@ -26,11 +26,18 @@ drop table t1,t2;
|
|||||||
# Test of binary and normal strings
|
# Test of binary and normal strings
|
||||||
#
|
#
|
||||||
|
|
||||||
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 ");
|
insert into t1 values ("hello ","hello "),("hello2 ","hello2 ");
|
||||||
|
select * from t1 where a="hello";
|
||||||
select * from t1 where a="hello ";
|
select * from t1 where a="hello ";
|
||||||
select * from t1 where b="hello ";
|
select * from t1 ignore index (a) where a="hello ";
|
||||||
select * from t1 where b="hello";
|
select * from t1 where b="hello";
|
||||||
|
select * from t1 where b="hello ";
|
||||||
|
select * from t1 ignore index (b) where b="hello ";
|
||||||
|
# blob test
|
||||||
|
alter table t1 modify b tinytext not null, drop key b, add key (b(100));
|
||||||
|
select * from t1 where b="hello ";
|
||||||
|
select * from t1 ignore index (b) where b="hello ";
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user