summaryrefslogtreecommitdiff
path: root/mysql-test/t/mysqlcheck.test
diff options
context:
space:
mode:
authorRamil Kalimullin <ramil@mysql.com>2008-11-14 13:48:01 +0400
committerRamil Kalimullin <ramil@mysql.com>2008-11-14 13:48:01 +0400
commitcba2743336055163874f6aec273f920ee0df5b11 (patch)
tree1992a3b85335202efceda500a25717c05118e864 /mysql-test/t/mysqlcheck.test
parent52b90054a71e78ee25ed3d6b9e8374d22ae67a0b (diff)
parentdbc062bf2c5fe8a38151e72eb7a3c110da6d856b (diff)
downloadmariadb-git-cba2743336055163874f6aec273f920ee0df5b11.tar.gz
Auto-merge
Diffstat (limited to 'mysql-test/t/mysqlcheck.test')
-rw-r--r--mysql-test/t/mysqlcheck.test20
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/t/mysqlcheck.test b/mysql-test/t/mysqlcheck.test
index d5d8647e8f4..0e675731fd5 100644
--- a/mysql-test/t/mysqlcheck.test
+++ b/mysql-test/t/mysqlcheck.test
@@ -78,6 +78,26 @@ create view v1 as select * from information_schema.routines;
check table v1, information_schema.routines;
drop view v1;
+
+#
+# Bug#37527: mysqlcheck fails to report entire database
+# when frm file corruption
+#
+CREATE TABLE t1(a INT);
+CREATE TABLE t2(a INT);
+# backup then null t1.frm
+--copy_file $MYSQLTEST_VARDIR/master-data/test/t1.frm $MYSQLTEST_VARDIR/master-data/test/t1.frm.bak
+--remove_file $MYSQLTEST_VARDIR/master-data/test/t1.frm
+--write_file $MYSQLTEST_VARDIR/master-data/test/t1.frm
+EOF
+--exec $MYSQL_CHECK test
+# restore t1.frm
+--remove_file $MYSQLTEST_VARDIR/master-data/test/t1.frm
+--copy_file $MYSQLTEST_VARDIR/master-data/test/t1.frm.bak $MYSQLTEST_VARDIR/master-data/test/t1.frm
+--remove_file $MYSQLTEST_VARDIR/master-data/test/t1.frm.bak
+DROP TABLE t1, t2;
+
+
--echo End of 5.0 tests
#