Skip to content

Commit 78989b6

Browse files
committed
MDEV-9168 altering a column comment does a full copy
add a test case
1 parent b233b15 commit 78989b6

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

mysql-test/r/alter_table_online.result

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,12 @@ drop table t1,t2,t3;
6464
create table t1 (i int) partition by hash(i) partitions 2;
6565
alter online table t1 comment 'test';
6666
drop table t1;
67+
create table t1 (a int);
68+
alter online table t1 modify a int comment 'test';
69+
drop table t1;
70+
create table t1 (a int) engine=innodb;
71+
alter online table t1 modify a int comment 'test';
72+
drop table t1;
73+
create table t1 (a int) partition by hash(a) partitions 2;
74+
alter online table t1 modify a int comment 'test';
75+
drop table t1;

mysql-test/t/alter_table_online.test

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,18 @@ drop table t1,t2,t3;
106106
create table t1 (i int) partition by hash(i) partitions 2;
107107
alter online table t1 comment 'test';
108108
drop table t1;
109+
110+
#
111+
# MDEV-9168 altering a column comment does a full copy
112+
#
113+
create table t1 (a int);
114+
alter online table t1 modify a int comment 'test';
115+
drop table t1;
116+
117+
create table t1 (a int) engine=innodb;
118+
alter online table t1 modify a int comment 'test';
119+
drop table t1;
120+
121+
create table t1 (a int) partition by hash(a) partitions 2;
122+
alter online table t1 modify a int comment 'test';
123+
drop table t1;

0 commit comments

Comments
 (0)