~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/heap_btree.test

  • Committer: Paweł Blokus
  • Date: 2010-06-09 20:36:51 UTC
  • mto: This revision was merged to the branch mainline in revision 1620.
  • Revision ID: pawel@pawel-desktop-20100609203651-mbq5x34bt9m3kv0o
minor style fixes

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 DEFAULT 42 not null, add key using BTREE (c,a);
 
21
alter table t1 add c int not null, add key using BTREE (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 BTREE (a)) engine=MEMORY comment="testing heaps";
123
123
select * from t1 where btn like "ff%";
124
124
select * from t1 where btn like " %";
125
125
select * from t1 where btn like "q%";
126
 
alter table t1 add column new_col char(1) DEFAULT "Y" not null, add key using BTREE (btn,new_col), drop key btn;
 
126
alter table t1 add column new_col char(1) not null, add key using BTREE (btn,new_col), drop key btn;
127
127
update t1 set new_col=left(btn,1);
128
128
explain select * from t1 where btn="a";
129
129
explain select * from t1 where btn="a" and new_col="a";