mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
MDEV-31138 Enable the test spider/bugfix.mdev_29676
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
wait_timeout : MDEV-26045
|
||||
mdev_29676 : MDEV-31138
|
||||
mdev_27239: MDEV-32046
|
||||
mdev_27575 : MDEV-32997
|
||||
|
||||
@@ -8,39 +8,33 @@ CREATE SERVER srv FOREIGN DATA WRAPPER MYSQL OPTIONS (SOCKET "$MASTER_1_MYSOCK",
|
||||
|
||||
# length-0 self-reference
|
||||
|
||||
CREATE TABLE t (c INT) ENGINE=Spider COMMENT='WRAPPER "mysql", srv "srv",TABLE "t"';
|
||||
CREATE TABLE t (c INT) ENGINE=Spider WRAPPER=mysql, remote_server=srv, remote_table=t;
|
||||
CREATE OR REPLACE TABLE t (c INT);
|
||||
Warnings:
|
||||
Error 1205 Lock wait timeout exceeded; try restarting transaction
|
||||
Error 12722 Table test.t open lock wait timeout. Please check for self-reference.
|
||||
SHOW CREATE TABLE t;
|
||||
Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
DROP TABLE t;
|
||||
|
||||
# length-2 self-reference
|
||||
|
||||
CREATE TABLE t2 (c int);
|
||||
CREATE TABLE t1 (c int) ENGINE=Spider COMMENT='WRAPPER "mysql", srv "srv",TABLE "t2"';
|
||||
CREATE TABLE t0 (c int) ENGINE=Spider COMMENT='WRAPPER "mysql", srv "srv",TABLE "t1"';
|
||||
ALTER TABLE t2 ENGINE=Spider COMMENT='WRAPPER "mysql", srv "srv",TABLE "t0"';
|
||||
CREATE TABLE t1 (c int) ENGINE=Spider WRAPPER=mysql, remote_server="srv",remote_table="t2";
|
||||
CREATE TABLE t0 (c int) ENGINE=Spider WRAPPER=mysql, remote_server=srv,remote_table="t1";
|
||||
ALTER TABLE t2 ENGINE=Spider WRAPPER=mysql, remote_server=srv,remote_table="t0";
|
||||
CREATE OR REPLACE TABLE t0 (c int);
|
||||
Warnings:
|
||||
Error 1205 Lock wait timeout exceeded; try restarting transaction
|
||||
Error 12722 Table test.t1 open lock wait timeout. Please check for self-reference.
|
||||
SHOW CREATE TABLE t0;
|
||||
Table Create Table
|
||||
t0 CREATE TABLE `t0` (
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
CREATE OR REPLACE TABLE t1 (c int);
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
drop TABLE t0, t1, t2;
|
||||
for master_1
|
||||
for child2
|
||||
|
||||
@@ -14,7 +14,7 @@ eval CREATE SERVER srv FOREIGN DATA WRAPPER MYSQL OPTIONS (SOCKET "$MASTER_1_MYS
|
||||
--echo
|
||||
--echo # length-0 self-reference
|
||||
--echo
|
||||
CREATE TABLE t (c INT) ENGINE=Spider COMMENT='WRAPPER "mysql", srv "srv",TABLE "t"';
|
||||
CREATE TABLE t (c INT) ENGINE=Spider WRAPPER=mysql, remote_server=srv, remote_table=t;
|
||||
CREATE OR REPLACE TABLE t (c INT);
|
||||
SHOW CREATE TABLE t;
|
||||
DROP TABLE t;
|
||||
@@ -23,9 +23,9 @@ DROP TABLE t;
|
||||
--echo # length-2 self-reference
|
||||
--echo
|
||||
CREATE TABLE t2 (c int);
|
||||
CREATE TABLE t1 (c int) ENGINE=Spider COMMENT='WRAPPER "mysql", srv "srv",TABLE "t2"';
|
||||
CREATE TABLE t0 (c int) ENGINE=Spider COMMENT='WRAPPER "mysql", srv "srv",TABLE "t1"';
|
||||
ALTER TABLE t2 ENGINE=Spider COMMENT='WRAPPER "mysql", srv "srv",TABLE "t0"';
|
||||
CREATE TABLE t1 (c int) ENGINE=Spider WRAPPER=mysql, remote_server="srv",remote_table="t2";
|
||||
CREATE TABLE t0 (c int) ENGINE=Spider WRAPPER=mysql, remote_server=srv,remote_table="t1";
|
||||
ALTER TABLE t2 ENGINE=Spider WRAPPER=mysql, remote_server=srv,remote_table="t0";
|
||||
# warnings
|
||||
CREATE OR REPLACE TABLE t0 (c int);
|
||||
SHOW CREATE TABLE t0;
|
||||
|
||||
Reference in New Issue
Block a user