diff options
author | Bjorn Munch <Bjorn.Munch@sun.com> | 2010-06-02 16:23:29 +0200 |
---|---|---|
committer | Bjorn Munch <Bjorn.Munch@sun.com> | 2010-06-02 16:23:29 +0200 |
commit | d5f2972628d90595c203bd82ec5def2d3d0a82da (patch) | |
tree | 836f4fb2607334b84c5dce95ab313b9544911659 /mysql-test/t/archive.test | |
parent | d5e9a45efdc0edd1ce5bb9741b0c1750e3a23b43 (diff) | |
parent | 37b02cd7d99278aec20e793c79ed105e99b2f7e7 (diff) | |
download | mariadb-git-d5f2972628d90595c203bd82ec5def2d3d0a82da.tar.gz |
Merge from 5.1 up to rev 3392
Diffstat (limited to 'mysql-test/t/archive.test')
-rw-r--r-- | mysql-test/t/archive.test | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mysql-test/t/archive.test b/mysql-test/t/archive.test index 67ad0517ed2..7084f5f540e 100644 --- a/mysql-test/t/archive.test +++ b/mysql-test/t/archive.test @@ -1655,3 +1655,26 @@ FLUSH TABLE t1; SELECT * FROM t1; --error ER_BAD_TABLE_ERROR DROP TABLE t1; + + +--echo # +--echo # BUG#46565 - repair of partition fail for archive engine +--echo # +--echo # Installing corrupted table files for t1. +# bug46565 was created, filled and damaged as following: +# CREATE TABLE bug46565(a INT) ENGINE=archive; +# INSERT INTO bug46565 VALUES(1); +# FLUSH TABLE bug46565; +# INSERT INTO bug46565 VALUES(2),(3); +# FLUSH TABLE bug46565; +# dd if=bug46565.ARZ of=std_data/bug46565.ARZ bs=1 count=8670 +copy_file std_data/bug46565.frm $MYSQLD_DATADIR/test/t1.frm; +copy_file std_data/bug46565.ARZ $MYSQLD_DATADIR/test/t1.ARZ; +--error ER_CRASHED_ON_USAGE +SELECT * FROM t1; +REPAIR TABLE t1; +--error ER_CRASHED_ON_USAGE +SELECT * FROM t1; +REPAIR TABLE t1 EXTENDED; +SELECT * FROM t1; +DROP TABLE t1; |