~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/endspace.test

  • Committer: Brian Aker
  • Date: 2009-08-18 07:20:29 UTC
  • mfrom: (1117.1.9 merge)
  • Revision ID: brian@gaz-20090818072029-s9ch5lcmltxwidn7
Merge of Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
select concat('|', text1, '|') from t1 where text1='teststring';
40
40
select concat('|', text1, '|') from t1 where text1='teststring ';
41
41
 
42
 
alter table t1 modify text1 text not null, pack_keys=1;
 
42
alter table t1 modify text1 text not null;
43
43
select concat('|', text1, '|') from t1 where text1='teststring';
44
44
select concat('|', text1, '|') from t1 where text1='teststring ';
45
45
explain select concat('|', text1, '|') from t1 where text1='teststring ';
49
49
select concat('|', text1, '|') from t1 order by text1;
50
50
drop table t1;
51
51
 
52
 
create table t1 (text1 varchar(32) not NULL, KEY key1 (text1)) pack_keys=0;
 
52
create table t1 (text1 varchar(32) not NULL, KEY key1 (text1));
53
53
insert into t1 values ('teststring'), ('nothing'), ('teststring\t');
54
54
select concat('|', text1, '|') from t1 where text1='teststring' or text1 like 'teststring_%';
55
55
select concat('|', text1, '|') from t1 where text1='teststring' or text1 >= 'teststring\t';
89
89
insert into t1 values ('teststring ');
90
90
select concat('|', text1, '|') from t1 order by text1;
91
91
 
92
 
alter table t1 modify text1 text not null, pack_keys=1;
 
92
alter table t1 modify text1 text not null;
93
93
select * from t1 where text1 like 'teststring_%';
94
94
 
95
95
# The following gives wrong result in InnoDB