diff options
author | Eugene Kosov <claprix@yandex.ru> | 2019-09-03 16:28:30 +0300 |
---|---|---|
committer | Eugene Kosov <claprix@yandex.ru> | 2019-09-03 22:08:30 +0300 |
commit | 7bccd2910f6cd02a49d62a739dfe64c25c6a8462 (patch) | |
tree | b42ed04955163c5079c94587c944c39c0be7f5ea /mysql-test/suite/innodb | |
parent | 4f10d0918d91a98ba46e095fbe775409d3ce0d41 (diff) | |
download | mariadb-git-7bccd2910f6cd02a49d62a739dfe64c25c6a8462.tar.gz |
MDEV-20479 assertion failure in dict_table_get_nth_col() after INSTANT DROP COLUMN
get_col_list_to_be_dropped() incorrectly returned uninteresting instantly
dropped column which was missing in a new dict_index_t
get_col_list_to_be_dropped(): rename to collect_columns_from_dropped_indexes
and stop return dropped columns
Diffstat (limited to 'mysql-test/suite/innodb')
-rw-r--r-- | mysql-test/suite/innodb/r/instant_alter_bugs.result | 8 | ||||
-rw-r--r-- | mysql-test/suite/innodb/t/instant_alter_bugs.test | 11 |
2 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/suite/innodb/r/instant_alter_bugs.result b/mysql-test/suite/innodb/r/instant_alter_bugs.result index 5e3c2f87bf1..109cbffe871 100644 --- a/mysql-test/suite/innodb/r/instant_alter_bugs.result +++ b/mysql-test/suite/innodb/r/instant_alter_bugs.result @@ -261,3 +261,11 @@ a 1 3 DROP TABLE t1; +# +# MDEV-20479: assertion failure in dict_table_get_nth_col() after INSTANT DROP COLUMN +# +CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB; +ALTER TABLE t1 ADD COLUMN (b INT, c INT, d INT, e INT NOT NULL DEFAULT 0); +ALTER TABLE t1 ADD UNIQUE INDEX(e); +ALTER TABLE t1 DROP b, DROP c, DROP d, DROP e; +DROP TABLE t1; diff --git a/mysql-test/suite/innodb/t/instant_alter_bugs.test b/mysql-test/suite/innodb/t/instant_alter_bugs.test index 3cf3de54ba5..fc5e3ca56e4 100644 --- a/mysql-test/suite/innodb/t/instant_alter_bugs.test +++ b/mysql-test/suite/innodb/t/instant_alter_bugs.test @@ -266,3 +266,14 @@ ROLLBACK; SELECT * FROM t1; DROP TABLE t1; + + +--echo # +--echo # MDEV-20479: assertion failure in dict_table_get_nth_col() after INSTANT DROP COLUMN +--echo # + +CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB; +ALTER TABLE t1 ADD COLUMN (b INT, c INT, d INT, e INT NOT NULL DEFAULT 0); +ALTER TABLE t1 ADD UNIQUE INDEX(e); +ALTER TABLE t1 DROP b, DROP c, DROP d, DROP e; +DROP TABLE t1; |