~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/heap_btree.result

Merging stdize-code with main trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
insert into t1 values ("hello"),("hello"),("hello"),("hello"),("hello"),("a"),("b"),("c"),("d"),("e"),("f"),("g"),("h"),("i");
176
176
explain select * from t1 where btn like "i%";
177
177
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
178
 
1       SIMPLE  t1      range   btn     btn     12      NULL    1       Using where
 
178
1       SIMPLE  t1      range   btn     btn     42      NULL    1       Using where
179
179
explain select * from t1 where btn like "h%";
180
180
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
181
 
1       SIMPLE  t1      range   btn     btn     12      NULL    #       Using where
 
181
1       SIMPLE  t1      range   btn     btn     42      NULL    #       Using where
182
182
explain select * from t1 where btn like "a%";
183
183
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
184
 
1       SIMPLE  t1      range   btn     btn     12      NULL    1       Using where
 
184
1       SIMPLE  t1      range   btn     btn     42      NULL    1       Using where
185
185
explain select * from t1 where btn like "b%";
186
186
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
187
 
1       SIMPLE  t1      range   btn     btn     12      NULL    1       Using where
 
187
1       SIMPLE  t1      range   btn     btn     42      NULL    1       Using where
188
188
select * from t1 where btn like "ff%";
189
189
btn
190
190
select * from t1 where btn like " %";
195
195
update t1 set new_col=left(btn,1);
196
196
explain select * from t1 where btn="a";
197
197
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
198
 
1       SIMPLE  t1      ref     btn     btn     12      const   1       Using where
 
198
1       SIMPLE  t1      ref     btn     btn     42      const   1       Using where
199
199
explain select * from t1 where btn="a" and new_col="a";
200
200
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
201
 
1       SIMPLE  t1      ref     btn     btn     15      const,const     1       Using where
 
201
1       SIMPLE  t1      ref     btn     btn     48      const,const     1       Using where
202
202
drop table t1;
203
203
CREATE TABLE t1 (
204
204
a int default NULL,
298
298
CREATE TABLE t1 (
299
299
c1 ENUM('1', '2'),
300
300
UNIQUE USING BTREE(c1)
301
 
) ENGINE= MEMORY DEFAULT CHARSET= utf8;
 
301
) ENGINE= MEMORY;
302
302
INSERT INTO t1 VALUES('1'), ('2');
303
303
DROP TABLE t1;
304
304
CREATE TABLE t1 (a INT, KEY USING BTREE(a)) ENGINE=MEMORY;