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