check.test 733 Bytes
Newer Older
1 2 3
connect (con1,localhost,root,,);
connect (con2,localhost,root,,);
connection con1;
4
--disable_warnings
5
drop table if exists t1;
6 7 8
--enable_warnings

# Add a lot of keys to slow down check
9 10
create table t1(n int not null, key(n), key(n), key(n), key(n));
let $1=10000;
11
disable_query_log;
12 13 14 15 16
while ($1)
{
 eval insert into t1 values ($1);
 dec $1;
}
17
enable_query_log;
serg@serg.mysql.com's avatar
serg@serg.mysql.com committed
18
send check table t1 extended;
19 20 21 22
connection con2;
insert into t1 values (200000);
connection con1;
reap;
23
drop table t1;
24

25 26 27 28 29 30 31 32 33 34 35 36
#
# Bug #9897  Views: 'Check Table' crashes MySQL, with a view and a table 
# in the statement
#

connection default;
Create table t1(f1 int);
Create table t2(f1 int);
Create view v1 as Select * from t1;
Check Table v1,t2;
drop view v1;
drop table t1, t2;