mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
archive.test and others
This commit is contained in:
@@ -6257,7 +6257,7 @@ auto fld1 companynr fld3 fld4 fld5 fld6
|
||||
3 011402 37 Romans scholastics jarring
|
||||
4 011403 37 intercepted audiology tinily
|
||||
DELETE FROM t2;
|
||||
ERROR HY000: Table storage engine for 't2' doesn't have this option
|
||||
ERROR HY000: Storage engine ARCHIVE of the table `test`.`t2` doesn't have this option
|
||||
SELECT * FROM t2;
|
||||
auto fld1 companynr fld3 fld4 fld5 fld6
|
||||
1 000001 00 Omaha teethe neat
|
||||
@@ -8689,7 +8689,7 @@ auto fld1 companynr fld3 fld4 fld5 fld6
|
||||
3 011402 37 Romans scholastics jarring
|
||||
4 011403 37 intercepted audiology tinily
|
||||
TRUNCATE TABLE t2;
|
||||
ERROR HY000: Table storage engine for 't2' doesn't have this option
|
||||
ERROR HY000: Storage engine ARCHIVE of the table `test`.`t2` doesn't have this option
|
||||
SELECT * FROM t2;
|
||||
auto fld1 companynr fld3 fld4 fld5 fld6
|
||||
1 000001 00 Omaha teethe neat
|
||||
@@ -12731,15 +12731,6 @@ id id name name
|
||||
DROP TABLE t1,t2;
|
||||
flush tables;
|
||||
SHOW CREATE TABLE t1;
|
||||
ERROR HY000: Table upgrade required. Please do "REPAIR TABLE `t1`" or dump/reload to fix it!
|
||||
SELECT * FROM t1;
|
||||
ERROR HY000: Table upgrade required. Please do "REPAIR TABLE `t1`" or dump/reload to fix it!
|
||||
INSERT INTO t1 (col1, col2) VALUES (1, "value");
|
||||
ERROR HY000: Table upgrade required. Please do "REPAIR TABLE `t1`" or dump/reload to fix it!
|
||||
REPAIR TABLE t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair status OK
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`col1` int(11) DEFAULT NULL,
|
||||
@@ -12747,6 +12738,10 @@ t1 CREATE TABLE `t1` (
|
||||
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1
|
||||
SELECT * FROM t1;
|
||||
col1 col2
|
||||
INSERT INTO t1 (col1, col2) VALUES (1, "value");
|
||||
REPAIR TABLE t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Corrupt
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# BUG#48757 - missing .ARZ file causes server crash
|
||||
@@ -12756,14 +12751,14 @@ FLUSH TABLE t1;
|
||||
SELECT * FROM t1;
|
||||
ERROR HY000: Can't find file: 't1' (errno: 2 "No such file or directory")
|
||||
DROP TABLE t1;
|
||||
ERROR 42S02: Unknown table 't1'
|
||||
ERROR 42S02: Unknown table 'test.t1'
|
||||
#
|
||||
# Ensure that TRUNCATE fails for non-empty archive tables.
|
||||
#
|
||||
CREATE TABLE t1 (a INT) ENGINE=ARCHIVE;
|
||||
INSERT INTO t1 VALUES (1);
|
||||
TRUNCATE TABLE t1;
|
||||
ERROR HY000: Table storage engine for 't1' doesn't have this option
|
||||
ERROR HY000: Storage engine ARCHIVE of the table `test`.`t1` doesn't have this option
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# BUG#46565 - repair of partition fail for archive engine
|
||||
@@ -12852,6 +12847,14 @@ Table Op Msg_type Msg_text
|
||||
test.t1 optimize status OK
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# Bug#13907676: HA_ARCHIVE::INFO
|
||||
#
|
||||
CREATE TABLE t1 (a INT) ENGINE=ARCHIVE;
|
||||
CREATE TABLE t2 SELECT * FROM t1;
|
||||
SELECT * FROM t2;
|
||||
a
|
||||
DROP TABLE t1, t2;
|
||||
#
|
||||
# BUG#917689 Using wrong archive table causes crash
|
||||
#
|
||||
create table t1 (a int, b char(50)) engine=archive;
|
||||
|
||||
@@ -1654,18 +1654,13 @@ copy_file std_data/bug47012.frm $MYSQLD_DATADIR/test/t1.frm;
|
||||
copy_file std_data/bug47012.ARZ $MYSQLD_DATADIR/test/t1.ARZ;
|
||||
copy_file std_data/bug47012.ARM $MYSQLD_DATADIR/test/t1.ARM;
|
||||
|
||||
--error ER_TABLE_NEEDS_UPGRADE
|
||||
SHOW CREATE TABLE t1;
|
||||
|
||||
--error ER_TABLE_NEEDS_UPGRADE
|
||||
SELECT * FROM t1;
|
||||
|
||||
--error ER_TABLE_NEEDS_UPGRADE
|
||||
INSERT INTO t1 (col1, col2) VALUES (1, "value");
|
||||
|
||||
REPAIR TABLE t1;
|
||||
SHOW CREATE TABLE t1;
|
||||
SELECT * FROM t1;
|
||||
DROP TABLE t1;
|
||||
remove_file $MYSQLD_DATADIR/test/t1.ARM;
|
||||
|
||||
@@ -1712,6 +1707,7 @@ REPAIR TABLE t1 EXTENDED;
|
||||
SELECT * FROM t1;
|
||||
DROP TABLE t1;
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # Bug#45377: ARCHIVE tables aren't discoverable after OPTIMIZE
|
||||
--echo #
|
||||
@@ -1724,7 +1720,6 @@ CREATE TABLE t1 (a int) ENGINE=ARCHIVE;
|
||||
SHOW CREATE TABLE t1;
|
||||
INSERT INTO t1 VALUES (1);
|
||||
OPTIMIZE TABLE t1;
|
||||
let $MYSQLD_DATADIR= `select @@datadir`;
|
||||
remove_file $MYSQLD_DATADIR/test/t1.frm;
|
||||
FLUSH TABLES;
|
||||
INSERT INTO t1 VALUES (2);
|
||||
@@ -1755,7 +1750,6 @@ SELECT * FROM t1 ORDER BY f LIMIT 1;
|
||||
DROP TABLE t1;
|
||||
SET sort_buffer_size=DEFAULT;
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # BUG#11758979 - 51252: ARCHIVE TABLES STILL FAIL UNDER STRESS
|
||||
--echo # TESTS: CRASH, CORRUPTION, 4G MEMOR
|
||||
@@ -1770,6 +1764,14 @@ FLUSH TABLE t1;
|
||||
OPTIMIZE TABLE t1;
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo #
|
||||
--echo # Bug#13907676: HA_ARCHIVE::INFO
|
||||
--echo #
|
||||
CREATE TABLE t1 (a INT) ENGINE=ARCHIVE;
|
||||
CREATE TABLE t2 SELECT * FROM t1;
|
||||
SELECT * FROM t2;
|
||||
DROP TABLE t1, t2;
|
||||
|
||||
--echo #
|
||||
--echo # BUG#917689 Using wrong archive table causes crash
|
||||
--echo #
|
||||
|
||||
Reference in New Issue
Block a user