mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-18098 Crash after rollback of instant DROP COLUMN
dict_table_t::rollback_instant(): Restore dict_index_t::n_core_fields.
This commit is contained in:
@ -302,6 +302,7 @@ DROP TABLE t1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-17899 Assertion failures on rollback of instant ADD/DROP
|
||||
--echo # MDEV-18098 Crash after rollback of instant DROP COLUMN
|
||||
--echo #
|
||||
|
||||
SET @save_dbug = @@SESSION.debug_dbug;
|
||||
@ -320,6 +321,13 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1 (a int, b int) ENGINE=InnoDB;
|
||||
--error ER_INTERNAL_ERROR
|
||||
ALTER TABLE t1 ADD COLUMN c INT;
|
||||
BEGIN;
|
||||
INSERT INTO t1 VALUES(1, 1);
|
||||
ROLLBACK;
|
||||
--error ER_INTERNAL_ERROR
|
||||
ALTER TABLE t1 DROP COLUMN b;
|
||||
INSERT INTO t1 values (1,1);
|
||||
SELECT * FROM t1;
|
||||
DROP TABLE t1;
|
||||
|
||||
SET debug_dbug = @save_dbug;
|
||||
|
Reference in New Issue
Block a user