~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/endspace.test

  • Committer: Monty Taylor
  • Date: 2009-10-06 19:37:52 UTC
  • mto: This revision was merged to the branch mainline in revision 1184.
  • Revision ID: mordred@inaugust.com-20091006193752-4dx2c8u35j4em79g
Removed more server_includes.h from headers.

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';
57
57
 
58
58
# Test HEAP tables (with BTREE keys)
59
59
 
60
 
create table t1 (text1 varchar(32) not NULL, KEY key1 using BTREE (text1)) engine=heap;
 
60
create temporary table t1 (text1 varchar(32) not NULL, KEY key1 using BTREE (text1)) engine=heap;
61
61
insert into t1 values ('teststring'), ('nothing'), ('teststring\t');
62
62
select * from t1 ignore key (key1) where text1='teststring' or 
63
63
  text1 like 'teststring_%' ORDER BY text1;
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