diff options
author | unknown <mikael/pappa@dator5.(none)> | 2006-07-10 17:08:42 -0400 |
---|---|---|
committer | unknown <mikael/pappa@dator5.(none)> | 2006-07-10 17:08:42 -0400 |
commit | 907df8e3c8ae2133aa9ec4b7807f618ec571e10e (patch) | |
tree | 38367371fcfbb953af90c4fca59068a3a6c06bc9 /mysql-test/t/partition_mgm.test | |
parent | 60d070b2736fb3d326eacd973a5af9a2ba094c84 (diff) | |
download | mariadb-git-907df8e3c8ae2133aa9ec4b7807f618ec571e10e.tar.gz |
BUG#20893: Valgrind error
mysql-test/r/partition_mgm.result:
Added new test case
mysql-test/t/partition_mgm.test:
Added new test case
sql/ha_partition.cc:
Fixed memory overwrite, added new variable for memory check
Problem was when reorganising partitions, the file handles
got in the wrong place.
sql/ha_partition.h:
Added new variable for debugging mostly
Diffstat (limited to 'mysql-test/t/partition_mgm.test')
-rw-r--r-- | mysql-test/t/partition_mgm.test | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/mysql-test/t/partition_mgm.test b/mysql-test/t/partition_mgm.test index cfb76192de4..39512de154f 100644 --- a/mysql-test/t/partition_mgm.test +++ b/mysql-test/t/partition_mgm.test @@ -12,7 +12,21 @@ ALTER TABLE t1 COALESCE PARTITION 1; SHOW CREATE TABLE t1; --replace_result $MYSQLTEST_VARDIR "hello" --exec ls $MYSQLTEST_VARDIR/master-data/test/t1* +drop table t1; +# +# Bug 20767: REORGANIZE partition crashes +# +create table t1 (a int) +partition by list (a) +subpartition by hash (a) +(partition p11 values in (1,2), + partition p12 values in (3,4)); +alter table t1 REORGANIZE partition p11, p12 INTO +(partition p1 values in (1,2,3,4)); +alter table t1 REORGANIZE partition p1 INTO +(partition p11 values in (1,2), + partition p12 values in (3,4)); - +drop table t1; |