mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / t / check.test
blobff23b352b5a26943d5e36a3a17a662a061ef51b1
1 # Save the initial number of concurrent sessions
2 --source include/count_sessions.inc
4 connect (con1,localhost,root,,);
5 connect (con2,localhost,root,,);
6 connection con1;
7 --disable_warnings
8 drop table if exists t1,t2;
9 drop view if exists v1;
10 --enable_warnings
12 # Add a lot of keys to slow down check
13 create table t1(n int not null, key(n), key(n), key(n), key(n));
14 let $1=10000;
15 disable_query_log;
16 while ($1)
18  eval insert into t1 values ($1);
19  dec $1;
21 enable_query_log;
22 send check table t1 extended;
23 connection con2;
24 insert into t1 values (200000);
25 connection con1;
26 reap;
27 connection default;
28 disconnect con1;
29 disconnect con2;
30 drop table t1;
33 # End of 4.1 tests
36 # Bug#9897 Views: 'Check Table' crashes MySQL, with a view and a table
37 #          in the statement
39 Create table t1(f1 int);
40 Create table t2(f1 int);
41 Create view v1 as Select * from t1;
42 Check Table v1,t2;
43 drop view v1;
44 drop table t1, t2;
48 # Bug#26325 TEMPORARY TABLE "corrupt" after first read, according to CHECK TABLE
50 CREATE TEMPORARY TABLE t1(a INT);
51 CHECK TABLE t1;
52 REPAIR TABLE t1;
53 DROP TABLE t1;
56 # Wait till we reached the initial number of concurrent sessions
57 --source include/wait_until_count_sessions.inc