summaryrefslogtreecommitdiff
path: root/mysql-test/main/partition_alter.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/main/partition_alter.test')
-rw-r--r--mysql-test/main/partition_alter.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/main/partition_alter.test b/mysql-test/main/partition_alter.test
index cca25d0989f..ded6fde4794 100644
--- a/mysql-test/main/partition_alter.test
+++ b/mysql-test/main/partition_alter.test
@@ -192,4 +192,15 @@ select * from t1 partition(p1);
delete from t1;
drop table t1;
+--echo #
+--echo # MDEV-28576 RENAME COLUMN with NOCOPY algorithm leads to corrupt partitioned table
+--echo #
+create table t (a int, b int) partition by list (b) (partition p1 values in (1, 2));
+insert into t values (0, 1), (2, 2);
+alter table t change b f int, change a b int, algorithm=nocopy;
+check table t;
+delete from t order by b limit 1;
+# cleanup
+drop table t;
+
--echo # End of 10.3 tests