~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/heap_btree.test

  • Committer: Monty Taylor
  • Date: 2010-08-12 20:27:32 UTC
  • mto: (1720.1.5 build)
  • mto: This revision was merged to the branch mainline in revision 1722.
  • Revision ID: mordred@inaugust.com-20100812202732-9kzchbkvkyki4n3u
Merged libdrizzle directly into tree.

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";
52
52
insert into t1 values (1,1),(2,2),(1,3),(2,4),(2,5),(2,6);
53
53
explain select * from t1 where x=1;
54
54
select * from t1 where x=1;
55
 
--error ER_CANT_REOPEN_TABLE
 
55
-- error 1137
56
56
select * from t1,t1 as t2 where t1.x=t2.y;
57
 
--error ER_CANT_REOPEN_TABLE
 
57
-- error 1137
58
58
explain select * from t1,t1 as t2 where t1.x=t2.y;
59
59
drop table t1;
60
60
 
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";