820.1.1
by Stewart Smith
EPIC \r FAIL |
1 |
#
|
1233.2.1
by Monty Taylor
Renamed instances of HEAP engine to MEMORY. Removed the alias. |
2 |
# Test MEMORY tables with variable-sized records.
|
820.1.1
by Stewart Smith
EPIC \r FAIL |
3 |
#
|
4 |
||
5 |
--disable_warnings |
|
6 |
drop table if exists t1; |
|
7 |
--enable_warnings |
|
8 |
||
9 |
set @@session.max_heap_table_size=16*1024*1024; |
|
10 |
||
11 |
--error 1234 |
|
1233.2.1
by Monty Taylor
Renamed instances of HEAP engine to MEMORY. Removed the alias. |
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; |
820.1.1
by Stewart Smith
EPIC \r FAIL |
13 |
|
14 |
--error 1234 |
|
1233.2.1
by Monty Taylor
Renamed instances of HEAP engine to MEMORY. Removed the alias. |
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; |
820.1.1
by Stewart Smith
EPIC \r FAIL |
16 |
|
1233.2.1
by Monty Taylor
Renamed instances of HEAP engine to MEMORY. Removed the alias. |
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; |
820.1.1
by Stewart Smith
EPIC \r FAIL |
18 |
|
1273.19.12
by Brian Aker
Enabled more tests. |
19 |
show table status like "t1"; |
820.1.1
by Stewart Smith
EPIC \r FAIL |
20 |
|
21 |
insert into t1 values (1,1,'012',NULL), (2,2,'0123456789',NULL), (3,3,'012345678901234567890123456789',NULL), (4,4,NULL,'0123456789012345678901234567890123456789012345678901234567890123456789'); |
|
22 |
select * from t1; |
|
23 |
||
24 |
delete from t1 where a = 3; |
|
25 |
select * from t1; |
|
26 |
||
27 |
insert into t1 values (5,5,NULL,'0123'), (6,6,NULL,'0123'); |
|
28 |
select * from t1; |
|
29 |
||
30 |
update t1 set c = '012345678901234567890123456789' where a = 2; |
|
31 |
select * from t1; |
|
32 |
||
33 |
update t1 set c = '0123456789' where a = 2; |
|
34 |
select * from t1; |
|
35 |
||
36 |
insert into t1 values (7,7,'0123',NULL), (8,8,'0123',NULL); |
|
37 |
select * from t1; |
|
38 |
||
1273.19.12
by Brian Aker
Enabled more tests. |
39 |
show table status like "t1"; |
820.1.1
by Stewart Smith
EPIC \r FAIL |
40 |
alter table t1 block_size = 0; |
1273.19.12
by Brian Aker
Enabled more tests. |
41 |
show table status like "t1"; |
820.1.1
by Stewart Smith
EPIC \r FAIL |
42 |
alter table t1 row_format = dynamic; |
1273.19.12
by Brian Aker
Enabled more tests. |
43 |
show table status like "t1"; |
1116.1.2
by Brian Aker
Remove options which are just for internal optimizations. |
44 |
alter table t1 block_size = 128; |
1273.19.12
by Brian Aker
Enabled more tests. |
45 |
show table status like "t1"; |
820.1.1
by Stewart Smith
EPIC \r FAIL |
46 |
|
47 |
select * from t1; |
|
48 |
||
49 |
delete from t1; |
|
50 |
select * from t1; |
|
51 |
||
244.1.1
by Harrison Fisk
Port Ebay/Google memory storage engine variable width columns. |
52 |
let $1=10001; |
820.1.1
by Stewart Smith
EPIC \r FAIL |
53 |
|
54 |
disable_query_log; |
|
910.4.13
by Stewart Smith
batch up more INSERTs into transactions to help tests run quicker. |
55 |
begin; |
244.1.1
by Harrison Fisk
Port Ebay/Google memory storage engine variable width columns. |
56 |
while ($1) |
57 |
{
|
|
820.1.1
by Stewart Smith
EPIC \r FAIL |
58 |
|
244.1.1
by Harrison Fisk
Port Ebay/Google memory storage engine variable width columns. |
59 |
eval insert into t1 values ($1,$1,$1,$1); |
820.1.1
by Stewart Smith
EPIC \r FAIL |
60 |
|
244.1.1
by Harrison Fisk
Port Ebay/Google memory storage engine variable width columns. |
61 |
dec $1; |
820.1.1
by Stewart Smith
EPIC \r FAIL |
62 |
|
63 |
}
|
|
910.4.13
by Stewart Smith
batch up more INSERTs into transactions to help tests run quicker. |
64 |
commit; |
820.1.1
by Stewart Smith
EPIC \r FAIL |
65 |
enable_query_log; |
66 |
||
67 |
select count(*) from t1; |
|
68 |
||
1116.1.2
by Brian Aker
Remove options which are just for internal optimizations. |
69 |
--error 1062 |
820.1.1
by Stewart Smith
EPIC \r FAIL |
70 |
insert into t1 values (100000,100000,NULL,'0123'), (100000,100000,NULL,'0123'); |
71 |
||
1273.19.12
by Brian Aker
Enabled more tests. |
72 |
show table status like "t1"; |
820.1.1
by Stewart Smith
EPIC \r FAIL |
73 |
select count(*) from t1; |
74 |
||
75 |
set @@session.max_heap_table_size=default; |
|
76 |
||
77 |
drop table t1; |
|
78 |
||
79 |
# End of 5.0 tests
|