diff options
author | Mikael Ronstrom <mikael@mysql.com> | 2009-09-07 10:37:54 +0200 |
---|---|---|
committer | Mikael Ronstrom <mikael@mysql.com> | 2009-09-07 10:37:54 +0200 |
commit | ea5d204370662a751b70d1a940be82601ac1a3b6 (patch) | |
tree | 0dd15ac79104c65a242a9f9c551d7a048c91c031 /mysql-test/r/partition_innodb.result | |
parent | 80d872bd9dde4c0078a4a2cec53de3f1e7f49999 (diff) | |
download | mariadb-git-ea5d204370662a751b70d1a940be82601ac1a3b6.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.result | 14 |
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), |