1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

MDEV-29010 Table cannot be loaded after instant ALTER

Reason:
======
- InnoDB fails to load the instant alter table metadata from
clustered index while loading the table definition.
The reason is that InnoDB metadata blob has the column length
exceeds maximum fixed length column size.

Fix:
===
- InnoDB should treat the long fixed length column as variable
length fields that needs external storage while initializing
the field map for instant alter operation
This commit is contained in:
Thirunarayanan Balathandayuthapani
2024-08-01 17:44:54 +05:30
parent d072a29601
commit 37119cd256
3 changed files with 27 additions and 0 deletions

View File

@@ -521,3 +521,12 @@ COUNT(*)
1
DROP TABLE t1;
# End of 10.4 tests
#
# MDEV-29010 Table cannot be loaded after instant ALTER
#
CREATE TABLE t1 (a CHAR(255), b INT,
c INT as (b) VIRTUAL)ENGINE=InnoDB CHARACTER SET utf32;
ALTER TABLE t1 DROP COLUMN a;
ALTER TABLE t1 DROP COLUMN c;
DROP TABLE t1;
# End of 10.5 tests