~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/endspace.result

  • Committer: Monty Taylor
  • Date: 2008-11-16 06:29:53 UTC
  • mto: (584.1.9 devel)
  • mto: This revision was merged to the branch mainline in revision 589.
  • Revision ID: monty@inaugust.com-20081116062953-ivdltjmfe009b5fr
Moved stuff into item/

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
explain select * from t1 order by text1;
46
46
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
47
47
1       SIMPLE  t1      index   NULL    key1    130     NULL    3       Using index
48
 
alter table t1 modify text1 char(32) not null;
 
48
alter table t1 modify text1 char(32) binary not null;
49
49
check table t1;
50
50
Table   Op      Msg_type        Msg_text
51
51
test.t1 check   status  OK
66
66
nothing 7
67
67
teststring              11
68
68
teststring      10
69
 
select text1, length(text1) from t1 order by text1;
 
69
select text1, length(text1) from t1 order by binary text1;
70
70
text1   length(text1)
71
71
nothing 7
 
72
teststring      10
72
73
teststring              11
73
 
teststring      10
74
74
alter table t1 modify text1 blob not null, drop key key1, add key key1 (text1(20));
75
75
insert into t1 values ('teststring ');
76
76
select concat('|', text1, '|') from t1 order by text1;
89
89
select concat('|', text1, '|') from t1 where text1='teststring ';
90
90
concat('|', text1, '|')
91
91
|teststring |
92
 
alter table t1 modify text1 text not null;
 
92
alter table t1 modify text1 text not null, pack_keys=1;
93
93
select concat('|', text1, '|') from t1 where text1='teststring';
94
94
concat('|', text1, '|')
95
95
|teststring|
121
121
|teststring|
122
122
|teststring |
123
123
drop table t1;
124
 
create table t1 (text1 varchar(32) not NULL, KEY key1 (text1));
 
124
create table t1 (text1 varchar(32) not NULL, KEY key1 (text1)) pack_keys=0;
125
125
insert into t1 values ('teststring'), ('nothing'), ('teststring\t');
126
126
select concat('|', text1, '|') from t1 where text1='teststring' or text1 like 'teststring_%';
127
127
concat('|', text1, '|')
132
132
|teststring     |
133
133
|teststring|
134
134
drop table t1;
135
 
create temporary table t1 (text1 varchar(32) not NULL, KEY key1 using BTREE (text1)) engine=MEMORY;
 
135
create table t1 (text1 varchar(32) not NULL, KEY key1 using BTREE (text1)) engine=heap;
136
136
insert into t1 values ('teststring'), ('nothing'), ('teststring\t');
137
137
select * from t1 ignore key (key1) where text1='teststring' or 
138
138
text1 like 'teststring_%' ORDER BY text1;
141
141
teststring
142
142
select * from t1 where text1='teststring' or text1 like 'teststring_%';
143
143
text1
 
144
teststring      
144
145
teststring
145
 
teststring      
146
146
select * from t1 where text1='teststring' or text1 >= 'teststring\t';
147
147
text1
 
148
teststring      
148
149
teststring
149
 
teststring      
150
150
select * from t1 order by text1;
151
151
text1
152
152
nothing
155
155
explain select * from t1 order by text1;
156
156
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
157
157
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    3       Using filesort
158
 
alter table t1 modify text1 char(32) not null;
 
158
alter table t1 modify text1 char(32) binary not null;
159
159
select * from t1 order by text1;
160
160
text1
161
161
nothing
182
182
explain select * from t1 order by text1;
183
183
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
184
184
1       SIMPLE  t1      index   NULL    key1    130     NULL    3       Using index
185
 
alter table t1 modify text1 char(32) not null;
 
185
alter table t1 modify text1 char(32) binary not null;
186
186
select * from t1 order by text1;
187
187
text1
188
188
nothing
196
196
|teststring|
197
197
|teststring     |
198
198
|teststring |
199
 
alter table t1 modify text1 text not null;
 
199
alter table t1 modify text1 text not null, pack_keys=1;
200
200
select * from t1 where text1 like 'teststring_%';
201
201
text1
202
202
teststring