mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
New tests added for Bug#33558 - Test "stress.ddl_csv needs nullable columns which CSV does not support
Added new tests and corrected existing tests mysql-test/suite/stress/include/ddl3.inc: New tests added for Bug#33558 - Test "stress.ddl_csv needs nullable columns which CSV does not support Had to change CREATE TABLE statements to include NOT NULL due to CSV engine constraints mysql-test/suite/stress/r/ddl_archive.result: New tests added for Bug#33558 - Test "stress.ddl_csv needs nullable columns which CSV does not support Reproduced .result files due to changes in ddl3.inc mysql-test/suite/stress/r/ddl_csv.result: New tests added for Bug#33558 - Test "stress.ddl_csv needs nullable columns which CSV does not support Reproduced .result files due to changes in ddl3.inc mysql-test/suite/stress/r/ddl_innodb.result: New tests added for Bug#33558 - Test "stress.ddl_csv needs nullable columns which CSV does not support Reproduced .result files due to changes in ddl3.inc mysql-test/suite/stress/r/ddl_memory.result: New tests added for Bug#33558 - Test "stress.ddl_csv needs nullable columns which CSV does not support Reproduced .result files due to changes in ddl3.inc mysql-test/suite/stress/r/ddl_myisam.result: New tests added for Bug#33558 - Test "stress.ddl_csv needs nullable columns which CSV does not support Reproduced .result files due to changes in ddl3.inc mysql-test/suite/stress/r/ddl_ndb.result: New tests added for Bug#33558 - Test "stress.ddl_csv needs nullable columns which CSV does not support Reproduced .result files due to changes in ddl3.inc BitKeeper/etc/ignore: Added mysql-test/.DS_Store .DS_Store to the ignore list mysql-test/t/disabled.def: Disabled new test - csv_alter_table.test file due to Bug#33696. Cannot generate a .result file due to the Bug. These tests can be enabled to test the bug fix without needing new tests unless the developer feels the need to add more. mysql-test/r/csv_not_null.result: New tests added for Bug#33558 - Test "stress.ddl_csv needs nullable columns which CSV does not support mysql-test/t/csv_alter_table.test: New tests added for Bug#33558 - Test "stress.ddl_csv needs nullable columns which CSV does not support Designed to test fixes for Bug#33696 - CSV Engine allows nullable columns via ALTER TABLE statements mysql-test/t/csv_not_null.test: New tests added for Bug#33558 - Test "stress.ddl_csv needs nullable columns which CSV does not support
This commit is contained in:
@ -29,26 +29,26 @@ DROP TABLE IF EXISTS t1;
|
||||
# con2: SELECT COUNT(*) <> 1 FROM t1 WHERE f1 = 1 (expect to get ER_NO_SUCH_TABLE)
|
||||
# Subtest 3A (one connection, no PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=ARCHIVE
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=ARCHIVE (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=ARCHIVE
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=ARCHIVE (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# default: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
# Subtest 3B (one connection, use PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=ARCHIVE
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=ARCHIVE (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=ARCHIVE
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=ARCHIVE (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# default: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
# Subtest 3C (two connections, no PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=ARCHIVE
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT) ENGINE=ARCHIVE (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=ARCHIVE
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=ARCHIVE (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# con2: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
# Subtest 3D (two connections, use PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=ARCHIVE
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT) ENGINE=ARCHIVE (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=ARCHIVE
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=ARCHIVE (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# con2: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
# Subtest 5A (one connection, no PREPARE/EXECUTE)
|
||||
|
@ -29,26 +29,26 @@ DROP TABLE IF EXISTS t1;
|
||||
# con2: SELECT COUNT(*) <> 1 FROM t1 WHERE f1 = 1 (expect to get ER_NO_SUCH_TABLE)
|
||||
# Subtest 3A (one connection, no PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=CSV
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=CSV (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=CSV
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=CSV (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# default: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
# Subtest 3B (one connection, use PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=CSV
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=CSV (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=CSV
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=CSV (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# default: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
# Subtest 3C (two connections, no PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=CSV
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT) ENGINE=CSV (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=CSV
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=CSV (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# con2: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
# Subtest 3D (two connections, use PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=CSV
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT) ENGINE=CSV (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=CSV
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=CSV (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# con2: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
DEALLOCATE PREPARE stmt_start;
|
||||
|
@ -53,26 +53,26 @@ ENGINE = InnoDB
|
||||
# con2: SELECT COUNT(*) <> 1 FROM t1 WHERE f1 = 1 (expect to get ER_NO_SUCH_TABLE)
|
||||
# Subtest 3A (one connection, no PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=InnoDB
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=InnoDB (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=InnoDB
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=InnoDB (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# default: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
# Subtest 3B (one connection, use PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=InnoDB
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=InnoDB (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=InnoDB
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=InnoDB (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# default: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
# Subtest 3C (two connections, no PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=InnoDB
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT) ENGINE=InnoDB (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=InnoDB
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=InnoDB (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# con2: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
# Subtest 3D (two connections, use PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=InnoDB
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT) ENGINE=InnoDB (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=InnoDB
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=InnoDB (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# con2: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
CREATE TABLE t1 (f1 BIGINT, f2 BIGINT, UNIQUE(f1), UNIQUE (f2)) ENGINE=InnoDB;
|
||||
|
@ -53,26 +53,26 @@ ENGINE = MEMORY
|
||||
# con2: SELECT COUNT(*) <> 1 FROM t1 WHERE f1 = 1 (expect to get ER_NO_SUCH_TABLE)
|
||||
# Subtest 3A (one connection, no PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=MEMORY
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=MEMORY (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=MEMORY
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=MEMORY (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# default: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
# Subtest 3B (one connection, use PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=MEMORY
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=MEMORY (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=MEMORY
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=MEMORY (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# default: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
# Subtest 3C (two connections, no PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=MEMORY
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT) ENGINE=MEMORY (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=MEMORY
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=MEMORY (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# con2: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
# Subtest 3D (two connections, use PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=MEMORY
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT) ENGINE=MEMORY (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=MEMORY
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=MEMORY (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# con2: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
CREATE TABLE t1 (f1 BIGINT, f2 BIGINT, UNIQUE(f1), UNIQUE (f2)) ENGINE=MEMORY;
|
||||
|
@ -53,26 +53,26 @@ ENGINE = MyISAM
|
||||
# con2: SELECT COUNT(*) <> 1 FROM t1 WHERE f1 = 1 (expect to get ER_NO_SUCH_TABLE)
|
||||
# Subtest 3A (one connection, no PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=MyISAM
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=MyISAM (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=MyISAM
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=MyISAM (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# default: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
# Subtest 3B (one connection, use PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=MyISAM
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=MyISAM (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=MyISAM
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=MyISAM (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# default: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
# Subtest 3C (two connections, no PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=MyISAM
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT) ENGINE=MyISAM (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=MyISAM
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=MyISAM (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# con2: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
# Subtest 3D (two connections, use PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=MyISAM
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT) ENGINE=MyISAM (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=MyISAM
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=MyISAM (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# con2: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
CREATE TABLE t1 (f1 BIGINT, f2 BIGINT, UNIQUE(f1), UNIQUE (f2)) ENGINE=MyISAM;
|
||||
|
@ -53,26 +53,26 @@ ENGINE = NDB
|
||||
# con2: SELECT COUNT(*) <> 1 FROM t1 WHERE f1 = 1 (expect to get ER_NO_SUCH_TABLE)
|
||||
# Subtest 3A (one connection, no PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=NDB
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=NDB (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=NDB
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=NDB (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# default: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
# Subtest 3B (one connection, use PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=NDB
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=NDB (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=NDB
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=NDB (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# default: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
# Subtest 3C (two connections, no PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=NDB
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT) ENGINE=NDB (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=NDB
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=NDB (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# con2: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
# Subtest 3D (two connections, use PREPARE/EXECUTE)
|
||||
# connection action
|
||||
# default: CREATE TABLE t1 (f1 BIGINT) ENGINE=NDB
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT) ENGINE=NDB (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=NDB
|
||||
# con2: CREATE TABLE t1 (f1 BIGINT NOT NULL) ENGINE=NDB (expect to get ER_TABLE_EXISTS_ERROR)
|
||||
# default: DROP TABLE t1
|
||||
# con2: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
||||
CREATE TABLE t1 (f1 BIGINT, f2 BIGINT, UNIQUE(f1), UNIQUE (f2)) ENGINE=NDB;
|
||||
|
Reference in New Issue
Block a user