~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/heap_btree.result

  • Committer: brian
  • Date: 2008-08-01 17:43:30 UTC
  • mfrom: (261.1.8 drizzle)
  • Revision ID: brian@localhost.localdomain-20080801174330-3y6yxa7pxkzdir6p
Merge from downsource tree.

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     10      NULL    1       Using where
 
178
1       SIMPLE  t1      range   btn     btn     12      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     10      NULL    #       Using where
 
181
1       SIMPLE  t1      range   btn     btn     12      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     10      NULL    1       Using where
 
184
1       SIMPLE  t1      range   btn     btn     12      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     10      NULL    1       Using where
 
187
1       SIMPLE  t1      range   btn     btn     12      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     10      const   1       Using where
 
198
1       SIMPLE  t1      ref     btn     btn     12      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     11      const,const     1       Using where
 
201
1       SIMPLE  t1      ref     btn     btn     15      const,const     1       Using where
202
202
drop table t1;
203
203
CREATE TABLE t1 (
204
204
a int default NULL,