summaryrefslogtreecommitdiff
path: root/mysql-test/r/partition.result
diff options
context:
space:
mode:
authorunknown <holyfoot/hf@mysql.com/deer.(none)>2006-12-18 14:39:23 +0400
committerunknown <holyfoot/hf@mysql.com/deer.(none)>2006-12-18 14:39:23 +0400
commitc6ac9185bc24f774c8c0730162f54dc6f056e432 (patch)
treebab97a44f43ec8b8f0759991457836c9c8564856 /mysql-test/r/partition.result
parent92791f80bf66dcc5160a887494090dba44774d82 (diff)
downloadmariadb-git-c6ac9185bc24f774c8c0730162f54dc6f056e432.tar.gz
bug #24502 (reorganize partition closes connection)
when REORGANIZE creates new partition, no_subparts for that partition isn't set right (call handler::set_partitions_defaults always returns 1) Normally the number of subpartitions should be inherited from the table. mysql-test/r/partition.result: result fixed mysql-test/t/partition.test: testcase sql/sql_partition.cc: no_subparts is set for newly created partitions
Diffstat (limited to 'mysql-test/r/partition.result')
-rw-r--r--mysql-test/r/partition.result10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/r/partition.result b/mysql-test/r/partition.result
index 5a8f5a3137d..55ba8380665 100644
--- a/mysql-test/r/partition.result
+++ b/mysql-test/r/partition.result
@@ -1128,4 +1128,14 @@ a
18446744073709551613
18446744073709551614
drop table t1;
+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;
End of 5.1 tests