Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL), 10.11
-
None
Description
CREATE OR REPLACE TABLE t1(a INT PRIMARY KEY, data TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin) ENGINE=InnoDB; |
--error ER_ALTER_OPERATION_NOT_SUPPORTED_REASON
|
ALTER TABLE t1 MODIFY data LONGTEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin, ALGORITHM=INSTANT; |
InnoDB does not distinguish between VARCHAR, TINYTEXT, TEXT, MEDIUMTEXT, LONGTEXT internally.
As long as the maximum length does not become smaller, the conversion can be done on the metadata level, without table rebuild (and without even validating the contents of the table).
Attachments
Issue Links
- is blocked by
-
MDEV-30969 Some ALGORITHM=INSTANT checks are missing from handler::can_convert_nocopy()
- Open
- relates to
-
MDEV-16356 Allow ALGORITHM=NOCOPY for ADD CONSTRAINT
- Open
-
MDEV-30669 Changing the Data Type of a Column from Text to JSON causes a unexpected Table Rebuild
- Open