~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/heap_hash.result

  • Committer: Patrick Crews
  • Date: 2010-09-14 20:21:03 UTC
  • mto: (1771.1.1 pcrews)
  • mto: This revision was merged to the branch mainline in revision 1772.
  • Revision ID: gleebix@gmail.com-20100914202103-1db2n0bshzafep19
Moved transaction_log tests into updated non-publisher-based tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
2       2
25
25
3       3
26
26
4       6
27
 
alter table t1 add c int DEFAULT 42 not null, add key using HASH (c,a);
 
27
alter table t1 add c int not null, add key using HASH (c,a);
28
28
drop table t1;
29
29
create temporary table t1 (a int not null,b int not null, primary key using HASH (a)) engine=MEMORY comment="testing heaps";
30
30
insert into t1 values(1,1),(2,2),(3,3),(4,4);
160
160
1       SIMPLE  t1      ALL     btn     NULL    NULL    NULL    14      Using where
161
161
select * from t1 where btn like "q%";
162
162
btn
163
 
alter table t1 add column new_col char(1) default "Y" not null, add key using HASH (btn,new_col), drop key btn;
 
163
alter table t1 add column new_col char(1) not null, add key using HASH (btn,new_col), drop key btn;
164
164
update t1 set new_col=left(btn,1);
165
165
explain select * from t1 where btn="a";
166
166
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra