summaryrefslogtreecommitdiff
path: root/mysql-test/t/partition.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/t/partition.test')
-rw-r--r--mysql-test/t/partition.test16
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/t/partition.test b/mysql-test/t/partition.test
index 8cb5e76d85b..02c7ca0b05c 100644
--- a/mysql-test/t/partition.test
+++ b/mysql-test/t/partition.test
@@ -1354,4 +1354,20 @@ delete from t1 where a = 18446744073709551615;
select * from t1;
drop table t1;
+#
+# Bug 24502 reorganize partition closes connection
+#
+CREATE TABLE t1 (
+ num int(11) NOT NULL, cs int(11) NOT NULL)
+PARTITION BY RANGE (num) SUBPARTITION BY HASH (
+cs) SUBPARTITIONS 2 (PARTITION p_X VALUES LESS THAN MAXVALUE);
+
+ALTER TABLE t1
+REORGANIZE PARTITION p_X INTO (
+ PARTITION p_100 VALUES LESS THAN (100),
+ PARTITION p_X VALUES LESS THAN MAXVALUE
+ );
+
+drop table t1;
+
--echo End of 5.1 tests