~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/heap_var.test

  • Committer: Tim Martin
  • Date: 2010-04-05 14:22:01 UTC
  • mto: This revision was merged to the branch mainline in revision 1452.
  • Revision ID: timm@woolly-20100405142201-0qeekehrbui768he
Removed function prototype left over after previous dead code removal

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*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";
 
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;
12
18
 
13
19
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
14
20
show table status like "t1";
31
37
insert into t1 values (7,7,'0123',NULL), (8,8,'0123',NULL);
32
38
select * from t1;
33
39
 
 
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
 
34
54
delete from t1;
35
55
select * from t1;
36
56
 
51
71
 
52
72
select count(*) from t1;
53
73
 
54
 
--error ER_DUP_ENTRY
 
74
--error 1062
55
75
insert into t1 values (100000,100000,NULL,'0123'), (100000,100000,NULL,'0123');
56
76
 
57
77
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #