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/t/partition_innodb.test | |
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/t/partition_innodb.test')
-rw-r--r-- | mysql-test/t/partition_innodb.test | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/t/partition_innodb.test b/mysql-test/t/partition_innodb.test index 2abbceffbb0..b29ce289811 100644 --- a/mysql-test/t/partition_innodb.test +++ b/mysql-test/t/partition_innodb.test @@ -6,6 +6,23 @@ drop table if exists t1; --enable_warnings # +# Bug#47029: Crash when reorganize partition with subpartition +# +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; +# # Bug#40595: Non-matching rows not released with READ-COMMITTED on tables # with partitions CREATE TABLE t1 (id INT PRIMARY KEY, data INT) ENGINE = InnoDB |