~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/heap_var.test

  • Committer: Brian Aker
  • Date: 2010-05-15 01:19:45 UTC
  • Revision ID: brian@gaz-20100515011945-uxhf94vi0tzm0vq6
Rename of KEY to KeyInfo

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
drop table if exists t1;
7
7
--enable_warnings
8
8
 
9
 
set @@session.max_heap_table_size=16*1024*1024;
10
 
 
11
 
--error 1234
12
 
create temporary table t1 (a int not null, b varchar(400), c int, primary key (a), key (c)) engine=MEMORY comment="testing heaps" block_size=128;
13
 
 
14
 
--error 1234
15
 
create temporary table t1 (a int not null, b int, c varchar(400), primary key (a), key (b)) engine=MEMORY comment="testing heaps" block_size=4;
16
 
 
17
 
create temporary table t1 (a int not null, b int, c varchar(400), d varchar(400), primary key (a), key (b)) engine=MEMORY comment="testing heaps" block_size=24;
 
9
set @@session.max_heap_table_size=16*1024*1024*24;
 
10
 
 
11
create temporary table t1 (a int not null, b int, c varchar(400), d varchar(400), primary key (a), key (b)) engine=MEMORY comment="testing heaps";
18
12
 
19
13
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
20
14
show table status like "t1";
37
31
insert into t1 values (7,7,'0123',NULL), (8,8,'0123',NULL);
38
32
select * from t1;
39
33
 
40
 
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
41
 
show table status like "t1";
42
 
alter table t1 block_size = 0;
43
 
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
44
 
show table status like "t1";
45
 
alter table t1 row_format = dynamic;
46
 
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
47
 
show table status like "t1";
48
 
alter table t1 block_size = 128;
49
 
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
50
 
show table status like "t1";
51
 
 
52
 
select * from t1;
53
 
 
54
34
delete from t1;
55
35
select * from t1;
56
36