diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 18:00:34 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 18:00:34 +0000 |
commit | 3f619478f796eddbba6e39502fe941b285dd97b1 (patch) | |
tree | e2c7b5777f728320e5b5542b6213fd3591ba51e2 /mysql-test/suite/optimizer_unfixed_bugs/t/bug41996-extra4-innodb.test | |
parent | Initial commit. (diff) | |
download | mariadb-upstream.tar.xz mariadb-upstream.zip |
Adding upstream version 1:10.11.6.upstream/1%10.11.6upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mysql-test/suite/optimizer_unfixed_bugs/t/bug41996-extra4-innodb.test')
-rw-r--r-- | mysql-test/suite/optimizer_unfixed_bugs/t/bug41996-extra4-innodb.test | 363 |
1 files changed, 363 insertions, 0 deletions
diff --git a/mysql-test/suite/optimizer_unfixed_bugs/t/bug41996-extra4-innodb.test b/mysql-test/suite/optimizer_unfixed_bugs/t/bug41996-extra4-innodb.test new file mode 100644 index 00000000..ce0be3c7 --- /dev/null +++ b/mysql-test/suite/optimizer_unfixed_bugs/t/bug41996-extra4-innodb.test @@ -0,0 +1,363 @@ +--disable_warnings +--enable_warnings +CREATE TABLE t1 (c1 TINYINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 TINYINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 TINYINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 SMALLINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 SMALLINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 SMALLINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 MEDIUMINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 MEDIUMINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 MEDIUMINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 INT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 INT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 INTEGER NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 INTEGER NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 INTEGER NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 BIGINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 BIGINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 BIGINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 TINYINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 TINYINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 TINYINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE QUICK FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE QUICK FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 SMALLINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 SMALLINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 SMALLINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE QUICK FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE QUICK FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 MEDIUMINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 MEDIUMINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 MEDIUMINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE QUICK FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE QUICK FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 INT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 INT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE QUICK FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE QUICK FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 INTEGER NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 INTEGER NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 INTEGER NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE QUICK FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE QUICK FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 BIGINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 BIGINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 BIGINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE QUICK FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE QUICK FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 TINYINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 TINYINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 TINYINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE IGNORE FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE IGNORE FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 SMALLINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 SMALLINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 SMALLINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE IGNORE FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE IGNORE FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 MEDIUMINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 MEDIUMINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 MEDIUMINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE IGNORE FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE IGNORE FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 INT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 INT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE IGNORE FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE IGNORE FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 INTEGER NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 INTEGER NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 INTEGER NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE IGNORE FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE IGNORE FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 BIGINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 BIGINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 BIGINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE IGNORE FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE IGNORE FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 TINYINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 TINYINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 TINYINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE QUICK IGNORE FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE QUICK IGNORE FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 SMALLINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 SMALLINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 SMALLINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE QUICK IGNORE FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE QUICK IGNORE FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 MEDIUMINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 MEDIUMINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 MEDIUMINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE QUICK IGNORE FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE QUICK IGNORE FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 INT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 INT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE QUICK IGNORE FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE QUICK IGNORE FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 INTEGER NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 INTEGER NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 INTEGER NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE QUICK IGNORE FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE QUICK IGNORE FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; +CREATE TABLE t1 (c1 BIGINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t2 (c1 BIGINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +CREATE TABLE t3 (c1 BIGINT NOT NULL PRIMARY KEY, c2 INTEGER, KEY(c2)); +INSERT INTO t1 VALUES(1,1),(2,2),(3,3),(4,4),(5,5); +INSERT INTO t2 VALUES(11,1),(12,1),(13,1),(14,2),(15,6); +INSERT INTO t3 VALUES(21,11),(22,11),(23,13),(24,14),(25,15); +DELETE QUICK IGNORE FROM t1, t2 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DELETE QUICK IGNORE FROM t1, t2, t3 USING t1, t2, t3 WHERE t1.c1=t2.c2 AND t2.c1=t3.c2; +SELECT * FROM t1 ORDER BY c1; +SELECT * FROM t2 ORDER BY c1; +SELECT * FROM t3 ORDER BY c1; +DROP TABLE t1,t2,t3; + |