summaryrefslogtreecommitdiff
path: root/mysql-test/r/partition_innodb.result
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael@mysql.com>2009-09-07 10:37:54 +0200
committerMikael Ronstrom <mikael@mysql.com>2009-09-07 10:37:54 +0200
commitdd407c5228df80a7ef6086c412940084e7498627 (patch)
tree0dd15ac79104c65a242a9f9c551d7a048c91c031 /mysql-test/r/partition_innodb.result
parent9d82084d20b172c68fc84f2f1d0bc3a7b2ee2c2e (diff)
downloadmariadb-git-dd407c5228df80a7ef6086c412940084e7498627.tar.gz
Fix to ensure that all subpartitions gets deleted before renaming starts, BUG#47029
Diffstat (limited to 'mysql-test/r/partition_innodb.result')
-rw-r--r--mysql-test/r/partition_innodb.result14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/r/partition_innodb.result b/mysql-test/r/partition_innodb.result
index ad4d08e89ff..9c5675c0c75 100644
--- a/mysql-test/r/partition_innodb.result
+++ b/mysql-test/r/partition_innodb.result
@@ -1,4 +1,18 @@
drop table if exists t1;
+create table t1 (a int not null,
+b datetime not null,
+primary key (a,b))
+engine=innodb
+partition by range (to_days(b))
+subpartition by hash (a)
+subpartitions 2
+( partition p0 values less than (to_days('2009-01-01')),
+partition p1 values less than (to_days('2009-02-01')),
+partition p2 values less than (to_days('2009-03-01')),
+partition p3 values less than maxvalue);
+alter table t1 reorganize partition p1,p2 into
+( partition p2 values less than (to_days('2009-03-01')));
+drop table t1;
CREATE TABLE t1 (id INT PRIMARY KEY, data INT) ENGINE = InnoDB
PARTITION BY RANGE(id) (
PARTITION p0 VALUES LESS THAN (5),