mirror of
https://github.com/MariaDB/server.git
synced 2025-11-24 06:01:25 +03:00
Bug28309 First insert violates unique constraint - was "memory" table empty ?
---
Add missing phony targets
Makefile.am:
Add execution of the ddl stress tests.
(modified) test-bt: Short running variant added
(new) test-ext-stress: Longer running variant
(modified) test-ext: test-ext-stress added
(modified) test-fast: Short running variant with MyISAM only added
---
Declare test-ext-jp and test-ext-stress to PHONY make targets.
mysql-test/suite/stress/include/ddl.cln:
Script for cleanup at execution end
mysql-test/suite/stress/include/ddl.pre:
Script for general preparations at execution start
mysql-test/suite/stress/include/ddl1.inc:
ddl stress script
mysql-test/suite/stress/include/ddl2.inc:
ddl stress script
mysql-test/suite/stress/include/ddl3.inc:
ddl stress script
mysql-test/suite/stress/include/ddl4.inc:
ddl stress script
mysql-test/suite/stress/include/ddl5.inc:
ddl stress script
mysql-test/suite/stress/include/ddl6.inc:
ddl stress script
mysql-test/suite/stress/include/ddl7.inc:
ddl stress script
mysql-test/suite/stress/include/ddl8.inc:
ddl stress script
mysql-test/suite/stress/r/ddl_archive.result:
File with expected results
mysql-test/suite/stress/r/ddl_csv.result:
File with expected results
mysql-test/suite/stress/r/ddl_innodb.result:
File with expected results
mysql-test/suite/stress/r/ddl_memory.result:
File with expected results
mysql-test/suite/stress/r/ddl_myisam.result:
File with expected results
mysql-test/suite/stress/r/ddl_ndb.result:
File with expected results
mysql-test/suite/stress/t/ddl_archive.test:
Storage engine specific toplevel testscript
mysql-test/suite/stress/t/ddl_csv.test:
Storage engine specific toplevel testscript
mysql-test/suite/stress/t/ddl_innodb.test:
Storage engine specific toplevel testscript
mysql-test/suite/stress/t/ddl_memory.test:
Storage engine specific toplevel testscript
mysql-test/suite/stress/t/ddl_myisam.test:
Storage engine specific toplevel testscript
mysql-test/suite/stress/t/ddl_ndb.test:
Storage engine specific toplevel testscript
56 lines
2.8 KiB
Plaintext
56 lines
2.8 KiB
Plaintext
SET @@session.sql_mode = 'NO_ENGINE_SUBSTITUTION';
|
|
PREPARE stmt_start FROM "SELECT UNIX_TIMESTAMP() INTO @start";
|
|
SET @runtime = <intended_runtime>;
|
|
PREPARE stmt_break FROM "SELECT UNIX_TIMESTAMP() - @start > @runtime - 1";
|
|
DROP TABLE IF EXISTS t1;
|
|
# Subtest 2A (one connection, no PREPARE/EXECUTE)
|
|
# connection action
|
|
# default: CREATE TABLE t1 ENGINE = CSV AS SELECT 1 AS f1
|
|
# default: SELECT COUNT(*) <> 1 FROM t1 WHERE f1 = 1
|
|
# default: DROP TABLE t1
|
|
# default: SELECT COUNT(*) <> 1 FROM t1 WHERE f1 = 1 (expect to get ER_NO_SUCH_TABLE)
|
|
# Subtest 2B (one connection, use PREPARE/EXECUTE)
|
|
# connection action
|
|
# default: CREATE TABLE t1 ENGINE = CSV AS SELECT 1 AS f1
|
|
# default: SELECT COUNT(*) <> 1 FROM t1 WHERE f1 = 1
|
|
# default: DROP TABLE t1
|
|
# default: SELECT COUNT(*) <> 1 FROM t1 WHERE f1 = 1 (expect to get ER_NO_SUCH_TABLE)
|
|
# Subtest 2C (two connections, no PREPARE/EXECUTE)
|
|
# connection action
|
|
# default: CREATE TABLE t1 ENGINE = CSV AS SELECT 1 AS f1
|
|
# con2: SELECT COUNT(*) <> 1 FROM t1 WHERE f1 = 1
|
|
# default: DROP TABLE t1
|
|
# con2: SELECT COUNT(*) <> 1 FROM t1 WHERE f1 = 1 (expect to get ER_NO_SUCH_TABLE)
|
|
# Subtest 2D (two connections, use PREPARE/EXECUTE)
|
|
# connection action
|
|
# default: CREATE TABLE t1 ENGINE = CSV AS SELECT 1 AS f1
|
|
# con2: SELECT COUNT(*) <> 1 FROM t1 WHERE f1 = 1
|
|
# default: DROP TABLE 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: 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: 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: 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: DROP TABLE t1
|
|
# con2: DROP TABLE t1 (expect to get ER_BAD_TABLE_ERROR)
|
|
DEALLOCATE PREPARE stmt_start;
|
|
DEALLOCATE PREPARE stmt_break;
|