mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge MySQL 5.1.46 into MariaDB.
Still two test failures to be solved: main.myisam and main.subselect.
This commit is contained in:
@ -1646,3 +1646,37 @@ INSERT INTO t1 (col1, col2) VALUES (1, "value");
|
||||
REPAIR TABLE t1;
|
||||
DROP TABLE t1;
|
||||
remove_file $MYSQLD_DATADIR/test/t1.ARM;
|
||||
|
||||
--echo #
|
||||
--echo # BUG#48757 - missing .ARZ file causes server crash
|
||||
--echo #
|
||||
CREATE TABLE t1(a INT) ENGINE=ARCHIVE;
|
||||
FLUSH TABLE t1;
|
||||
--remove_file $MYSQLD_DATADIR/test/t1.ARZ
|
||||
--error ER_FILE_NOT_FOUND
|
||||
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;
|
||||
|
Reference in New Issue
Block a user