~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/heap.test

  • Committer: Monty Taylor
  • Date: 2010-03-11 18:27:20 UTC
  • mfrom: (1333 staging)
  • mto: This revision was merged to the branch mainline in revision 1348.
  • Revision ID: mordred@inaugust.com-20100311182720-hd1h87y6cb1b1mp0
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
create temporary table t1 (a int not null,b int not null, primary key (a)) engine=MEMORY comment="testing heaps";
10
10
insert into t1 values(1,1),(2,2),(3,3),(4,4);
11
11
delete from t1 where a=1 or a=0;
12
 
#show table status like "t1";
 
12
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
 
13
show table status like "t1";
13
14
show keys from t1;
14
15
select * from t1;
15
16
select * from t1 where a=4;
29
30
create temporary table t1 (a int not null,b int not null, primary key (a)) engine=MEMORY comment="testing heaps";
30
31
insert into t1 values(1,1),(2,2),(3,3),(4,4);
31
32
alter table t1 modify a int not null auto_increment, engine=innodb, comment="new innodb table";
32
 
#show table status like "t1";
 
33
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
 
34
show table status like "t1";
33
35
select * from t1;
34
36
drop table t1;
35
37
 
459
461
#
460
462
create temporary table t1 (c char(10)) engine=memory;
461
463
create temporary table t2 (c varchar(10)) engine=memory;
462
 
--replace_column 3 # 8 #
 
464
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
463
465
show table status like 't_';
464
466
drop table t1, t2;
465
467