1
by brian
clean slate |
1 |
connect (con1,localhost,root,,); |
2 |
connect (con2,localhost,root,,); |
|
3 |
connection con1; |
|
4 |
--disable_warnings
|
|
5 |
drop table if exists t1,t2; |
|
6 |
--enable_warnings
|
|
7 |
||
8 |
# Add a lot of keys to slow down check |
|
685.2.6
by Monty Taylor
Fixed check. |
9 |
create table t1(n int not null, key(n), key(n), key(n), key(n)) engine=myisam; |
1
by brian
clean slate |
10 |
let $1=10000; |
11 |
disable_query_log; |
|
12 |
while ($1) |
|
13 |
{
|
|
14 |
eval insert into t1 values ($1); |
|
15 |
dec $1; |
|
16 |
}
|
|
17 |
enable_query_log; |
|
18 |
send check table t1 extended; |
|
19 |
connection con2; |
|
20 |
insert into t1 values (200000); |
|
21 |
connection con1; |
|
22 |
reap; |
|
23 |
drop table t1; |
|
24 |
||
25 |
# End of 4.1 tests |
|
26 |
||
27 |
||
28 |
#
|
|
29 |
# BUG#26325 - TEMPORARY TABLE "corrupt" after first read, according to CHECK |
|
30 |
# TABLE |
|
31 |
#
|
|
685.2.6
by Monty Taylor
Fixed check. |
32 |
CREATE TEMPORARY TABLE t1(a INT) engine=myisam; |
1
by brian
clean slate |
33 |
CHECK TABLE t1; |
34 |
REPAIR TABLE t1; |
|
35 |
DROP TABLE t1; |