diff options
author | Mattias Jonsson <mattias.jonsson@sun.com> | 2008-12-02 11:18:01 +0100 |
---|---|---|
committer | Mattias Jonsson <mattias.jonsson@sun.com> | 2008-12-02 11:18:01 +0100 |
commit | 8f39d2584ba0ba33998461aa93a714f8cadf498d (patch) | |
tree | cb5e6f2879630e8707a6a568eac7954d2fb398f6 /mysql-test/r/partition_mgm.result | |
parent | 54eaadf01c4f5fa823af021600b82274d84e1cd3 (diff) | |
download | mariadb-git-8f39d2584ba0ba33998461aa93a714f8cadf498d.tar.gz |
Bug#40389: REORGANIZE PARTITION crashes when only using one partition
The non documented command 'ALTER PARTITION t REORGANIZE PARTITION'
(without any partitions!) which only make sense for nativly
partitioned engines, such as NDB, crashes the server if there was
no change of number of partitions.
The problem was wrong usage of fast_end_partition function,
which led to usage of a non initialized variable.
Diffstat (limited to 'mysql-test/r/partition_mgm.result')
-rw-r--r-- | mysql-test/r/partition_mgm.result | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/r/partition_mgm.result b/mysql-test/r/partition_mgm.result index 9ef220028b3..eeb9be949a0 100644 --- a/mysql-test/r/partition_mgm.result +++ b/mysql-test/r/partition_mgm.result @@ -1,4 +1,11 @@ DROP TABLE IF EXISTS t1; +CREATE TABLE t1 (a INT PRIMARY KEY) +ENGINE MYISAM +PARTITION BY HASH (a) +PARTITIONS 1; +INSERT INTO t1 VALUES (1),(2),(3),(4),(5); +ALTER TABLE t1 REORGANIZE PARTITION; +DROP TABLE t1; create table t1 (a int) partition by range (a) subpartition by key (a) |