Commit 78989b67 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-9168 altering a column comment does a full copy

add a test case
parent b233b15c
...@@ -64,3 +64,12 @@ drop table t1,t2,t3; ...@@ -64,3 +64,12 @@ drop table t1,t2,t3;
create table t1 (i int) partition by hash(i) partitions 2; create table t1 (i int) partition by hash(i) partitions 2;
alter online table t1 comment 'test'; alter online table t1 comment 'test';
drop table t1; drop table t1;
create table t1 (a int);
alter online table t1 modify a int comment 'test';
drop table t1;
create table t1 (a int) engine=innodb;
alter online table t1 modify a int comment 'test';
drop table t1;
create table t1 (a int) partition by hash(a) partitions 2;
alter online table t1 modify a int comment 'test';
drop table t1;
...@@ -106,3 +106,18 @@ drop table t1,t2,t3; ...@@ -106,3 +106,18 @@ drop table t1,t2,t3;
create table t1 (i int) partition by hash(i) partitions 2; create table t1 (i int) partition by hash(i) partitions 2;
alter online table t1 comment 'test'; alter online table t1 comment 'test';
drop table t1; drop table t1;
#
# MDEV-9168 altering a column comment does a full copy
#
create table t1 (a int);
alter online table t1 modify a int comment 'test';
drop table t1;
create table t1 (a int) engine=innodb;
alter online table t1 modify a int comment 'test';
drop table t1;
create table t1 (a int) partition by hash(a) partitions 2;
alter online table t1 modify a int comment 'test';
drop table t1;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment