~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysql-test/r/heap_btree.result

Removed DBUG symbols and fixed TRUE/FALSE

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
137
137
x       SIMPLE  tx      ref     b       b       x       const   x       
138
138
drop table t1;
139
 
create table t1 (id int not null, primary key  using BTREE (id)) engine=HEAP;
 
139
create table t1 (id int unsigned not null, primary key  using BTREE (id)) engine=HEAP;
140
140
insert into t1 values(1);
141
141
select max(id) from t1;
142
142
max(id)
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     42      NULL    1       Using where
 
178
1       SIMPLE  t1      range   btn     btn     10      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     42      NULL    #       Using where
 
181
1       SIMPLE  t1      range   btn     btn     10      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     42      NULL    1       Using where
 
184
1       SIMPLE  t1      range   btn     btn     10      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     42      NULL    1       Using where
 
187
1       SIMPLE  t1      range   btn     btn     10      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     42      const   1       Using where
 
198
1       SIMPLE  t1      ref     btn     btn     10      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     48      const,const     1       Using where
 
201
1       SIMPLE  t1      ref     btn     btn     11      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;
 
301
) ENGINE= MEMORY DEFAULT CHARSET= utf8;
 
302
INSERT INTO t1 VALUES('1'), ('2');
 
303
DROP TABLE t1;
 
304
CREATE TABLE t1 (
 
305
c1 SET('1', '2'),
 
306
UNIQUE USING BTREE(c1)
 
307
) ENGINE= MEMORY DEFAULT CHARSET= utf8;
302
308
INSERT INTO t1 VALUES('1'), ('2');
303
309
DROP TABLE t1;
304
310
CREATE TABLE t1 (a INT, KEY USING BTREE(a)) ENGINE=MEMORY;