mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-14119 Assertion cmp_rec_rec() in ALTER TABLE
innobase_pk_order_preserved(): Treat an added AUTO_INCREMENT column in the same way as an added existing column. In either case, the column values are not guaranteed to be constant, and thus the ordering may change if such a column is added before any existing PRIMARY KEY columns. prepare_inplace_alter_table_dict(): Initialize dict_table_t::persistent_autoinc before invoking innobase_pk_order_preserved().
This commit is contained in:
@ -53,3 +53,10 @@ ALTER TABLE t1 DROP a;
|
||||
ERROR HY000: Cannot drop index 'a': needed in a foreign key constraint
|
||||
ALTER TABLE t1 ADD c INT;
|
||||
DROP TABLE t1, tx;
|
||||
#
|
||||
# MDEV-14119 Assertion cmp_rec_rec() on ALTER TABLE
|
||||
#
|
||||
CREATE TABLE t1(a INT NOT NULL UNIQUE) ENGINE=InnoDB;
|
||||
INSERT INTO t1 SELECT * FROM seq_1_to_128;
|
||||
ALTER TABLE t1 ADD b TINYINT AUTO_INCREMENT PRIMARY KEY, DROP KEY a;
|
||||
DROP TABLE t1;
|
||||
|
Reference in New Issue
Block a user