1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Bug#25347: mysqlcheck -A -r doesn't repair table marked as crashed

Additional changes to test:  "flush tables" so that Windows releases
the files.


mysql-test/r/mysqlcheck.result:
  Add "flush tables" to get windows to release the files, so that 
  we can test truncation properly.
mysql-test/t/mysqlcheck.test:
  Add "flush tables" to get windows to release the files, so that 
  we can test truncation properly.
This commit is contained in:
unknown
2007-04-16 15:00:16 -04:00
parent d1c5f54ba5
commit a318c75af7
2 changed files with 34 additions and 1 deletions

View File

@ -45,8 +45,33 @@ create database d_bug25347;
use d_bug25347;
create table t_bug25347 (a int);
create view v_bug25347 as select * from t_bug25347;
insert into t_bug25347 values (1),(2),(3);
flush tables;
removing and creating
d_bug25347.t_bug25347 OK
d_bug25347.t_bug25347
error : Incorrect file format 't_bug25347'
insert into t_bug25347 values (4),(5),(6);
ERROR HY000: Incorrect file format 't_bug25347'
d_bug25347.t_bug25347
warning : Number of rows changed from 0 to 3
status : OK
insert into t_bug25347 values (7),(8),(9);
select * from t_bug25347;
a
1
2
3
7
8
9
select * from v_bug25347;
a
1
2
3
7
8
9
drop view v_bug25347;
drop table t_bug25347;
drop database d_bug25347;