diff options
Diffstat (limited to 'mysql-test/suite/innodb/t/innodb-alter-debug.test')
-rw-r--r-- | mysql-test/suite/innodb/t/innodb-alter-debug.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/suite/innodb/t/innodb-alter-debug.test b/mysql-test/suite/innodb/t/innodb-alter-debug.test index 00300bfdccc..7fbbb3159ee 100644 --- a/mysql-test/suite/innodb/t/innodb-alter-debug.test +++ b/mysql-test/suite/innodb/t/innodb-alter-debug.test @@ -130,5 +130,17 @@ reap; UNLOCK TABLES; DROP TABLE t1; +--echo # +--echo # MDEV-7318 RENAME INDEX +--echo # +CREATE TABLE t (c1 INT, c2 INT, KEY i2 (c2)) ENGINE=INNODB; + +SET DEBUG_DBUG= '+d,ib_rename_index_fail1'; +-- error ER_LOCK_DEADLOCK +ALTER TABLE t RENAME INDEX i2 to x, ALGORITHM=INPLACE; +SET DEBUG_DBUG = @saved_debug_dbug; + +DROP TABLE t; + # Wait till all disconnects are completed --source include/wait_until_count_sessions.inc |