~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/heap.test

  • Committer: lbieber
  • Date: 2010-09-11 16:33:45 UTC
  • mfrom: (1757.1.2 build)
  • Revision ID: lbieber@orisndriz03-20100911163345-na1t8m18at9thsjl
Merge Vijay - added utf 8 tamil test case suite and test case for creating a database in tamil
Merge Brian - Small set of refactoring (includes one case of memset on a table object).

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 (c,a);
 
21
alter table t1 add c int not null, add key (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 (a)) engine=memory comment="testing heaps";
51
51
engine=MEMORY;
52
52
insert into t1 values (1,1),(2,2),(1,3),(2,4),(2,5),(2,6);
53
53
select * from t1 where x=1;
54
 
--error ER_CANT_REOPEN_TABLE
 
54
-- error 1137
55
55
select * from t1,t1 as t2 where t1.x=t2.y;
56
 
--error ER_CANT_REOPEN_TABLE
 
56
-- error 1137
57
57
explain select * from t1,t1 as t2 where t1.x=t2.y;
58
58
drop table t1;
59
59
 
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) DEFAULT "Y" not null, add key (btn,new_col), drop key btn;
 
111
alter table t1 add column new_col char(1) not null, add key (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";