~drizzle-trunk/drizzle/development

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
9
create table t1(n int not null, key(n), key(n), key(n), key(n));
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
# Bug #9897  Views: 'Check Table' crashes MySQL, with a view and a table 
29
# in the statement
30
#
31
32
connection default;
33
Create table t1(f1 int);
34
Create table t2(f1 int);
35
Check Table v1,t2;
36
drop table t1, t2;
37
38
#
39
# BUG#26325 - TEMPORARY TABLE "corrupt" after first read, according to CHECK
40
#             TABLE
41
#
42
CREATE TEMPORARY TABLE t1(a INT);
43
CHECK TABLE t1;
44
REPAIR TABLE t1;
45
DROP TABLE t1;