~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memory/tests/t/heap_hash.test

  • Committer: Brian Aker
  • Date: 2010-12-07 09:12:12 UTC
  • mto: This revision was merged to the branch mainline in revision 1985.
  • Revision ID: brian@tangent.org-20101207091212-1m0w20tck6z7632m
This is a fix for bug lp:686197

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
update t1 set b=b+1 where a>=3;
19
19
replace t1 values (3,3);
20
20
select * from t1;
21
 
alter table t1 add c int not null, add key using HASH (c,a);
 
21
alter table t1 add c int DEFAULT 42 not null, add key using HASH (c,a);
22
22
drop table t1;
23
23
 
24
24
create temporary table t1 (a int not null,b int not null, primary key using HASH (a)) engine=MEMORY comment="testing heaps";
108
108
insert into t1 values ("hello"),("hello"),("hello"),("hello"),("hello"),("a"),("b"),("c"),("d"),("e"),("f"),("g"),("h"),("i");
109
109
explain select * from t1 where btn like "q%";
110
110
select * from t1 where btn like "q%";
111
 
alter table t1 add column new_col char(1) not null, add key using HASH (btn,new_col), drop key btn;
 
111
alter table t1 add column new_col char(1) default "Y" not null, add key using HASH (btn,new_col), drop key btn;
112
112
update t1 set new_col=left(btn,1);
113
113
explain select * from t1 where btn="a";
114
114
explain select * from t1 where btn="a" and new_col="a";