~posulliv/drizzle/optimizer-style-cleanup

« back to all changes in this revision

Viewing changes to tests/t/heap_var.test

  • Committer: Padraig O'Sullivan
  • Date: 2010-03-15 14:05:26 UTC
  • mfrom: (1237.9.99 staging)
  • Revision ID: osullivan.padraig@gmail.com-20100315140526-opbgwdwn6tfecdkq
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
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;
18
18
 
19
 
#show table status like "t1";
 
19
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
 
20
show table status like "t1";
20
21
 
21
22
insert into t1 values (1,1,'012',NULL), (2,2,'0123456789',NULL), (3,3,'012345678901234567890123456789',NULL), (4,4,NULL,'0123456789012345678901234567890123456789012345678901234567890123456789');
22
23
select * from t1;
36
37
insert into t1 values (7,7,'0123',NULL), (8,8,'0123',NULL);
37
38
select * from t1;
38
39
 
39
 
#show table status like "t1";
 
40
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
 
41
show table status like "t1";
40
42
alter table t1 block_size = 0;
41
 
#show table status like "t1";
 
43
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
 
44
show table status like "t1";
42
45
alter table t1 row_format = dynamic;
43
 
#show table status like "t1";
 
46
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
 
47
show table status like "t1";
44
48
alter table t1 block_size = 128;
45
 
#show table status like "t1";
 
49
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
 
50
show table status like "t1";
46
51
 
47
52
select * from t1;
48
53
 
69
74
--error 1062
70
75
insert into t1 values (100000,100000,NULL,'0123'), (100000,100000,NULL,'0123');
71
76
 
72
 
#show table status like "t1";
 
77
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
 
78
show table status like "t1";
73
79
select count(*) from t1;
74
80
 
75
81
set @@session.max_heap_table_size=default;