[MDEV-29436] Change text column collation unnecessarily requires ALGORITHM=COPY Created: 2022-09-01  Updated: 2022-09-01

Status: Open
Project: MariaDB Server
Component/s: Data Definition - Alter Table
Affects Version/s: 10.6
Fix Version/s: 10.6

Type: Bug Priority: Major
Reporter: Thirunarayanan Balathandayuthapani Assignee: Alexander Barkov
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-17301 Change of COLLATE unnecessarily requi... Closed
relates to MDEV-29425 Buffer overflow in dict_index_t::col_... Closed

 Description   

The following test case succeeds only with copy algorithm

--source include/have_innodb.inc
CREATE TABLE t1 (c1 INT PRIMARY KEY, c2 INT,
                 c3 TEXT CHARACTER SET utf8 COLLATE utf8_bin not null,
                 index(c3))ENGINE=InnoDB STATS_PERSISTENT=0;
SHOW CREATE TABLE t1;
ALTER TABLE t1 CHANGE c3 c3 TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci, algorithm=inplace;
DROP TABLE t1;

10.6 40aa94df356cfa000fc43c92ff0061212d1b161d

mysqltest: At line 6: query 'ALTER TABLE t1 CHANGE c3 c3 TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci, algorithm=inplace' failed: ER_ALTER_OPERATION_NOT_SUPPORTED_REASON (1846): ALGORITHM=INPLACE is not supported. Reason: Cannot change column type. Try ALGORITHM=COPY


Generated at Thu Feb 08 10:08:34 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.