Commit ef5d68f3 authored by unknown's avatar unknown

BUG# 17393: Partitions: Wrong error message when assigning too many subpartitions

We changed the error message to more clearly reflect the fact
that we are counting parts and subparts


mysql-test/r/partition_mgm_err.result:
  updated error message
sql/share/errmsg.txt:
  updated error message
parent 0882d9d6
...@@ -91,7 +91,7 @@ PARTITION BY KEY (a) ...@@ -91,7 +91,7 @@ PARTITION BY KEY (a)
ALTER TABLE t1 ADD PARTITION PARTITIONS 0; ALTER TABLE t1 ADD PARTITION PARTITIONS 0;
ERROR HY000: At least one partition must be added ERROR HY000: At least one partition must be added
ALTER TABLE t1 ADD PARTITION PARTITIONS 1024; ALTER TABLE t1 ADD PARTITION PARTITIONS 1024;
ERROR HY000: Too many partitions were defined ERROR HY000: Too many partitions (including subpartitions) were defined
ALTER TABLE t1 DROP PARTITION x0; ALTER TABLE t1 DROP PARTITION x0;
ERROR HY000: DROP PARTITION can only be used on RANGE/LIST partitions ERROR HY000: DROP PARTITION can only be used on RANGE/LIST partitions
ALTER TABLE t1 COALESCE PARTITION 1; ALTER TABLE t1 COALESCE PARTITION 1;
......
...@@ -5660,8 +5660,8 @@ ER_PARTITION_NOT_DEFINED_ERROR ...@@ -5660,8 +5660,8 @@ ER_PARTITION_NOT_DEFINED_ERROR
eng "For the partitioned engine it is necessary to define all %-.64s" eng "For the partitioned engine it is necessary to define all %-.64s"
swe "Fr partitioneringsmotorn s r det ndvndigt att definiera alla %-.64s" swe "Fr partitioneringsmotorn s r det ndvndigt att definiera alla %-.64s"
ER_TOO_MANY_PARTITIONS_ERROR ER_TOO_MANY_PARTITIONS_ERROR
eng "Too many partitions were defined" eng "Too many partitions (including subpartitions) were defined"
swe "Fr mnga partitioner definierades" swe "Fr mnga partitioner (inkluderande subpartitioner) definierades"
ER_SUBPARTITION_ERROR ER_SUBPARTITION_ERROR
eng "It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning" eng "It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning"
swe "Det r endast mjligt att blanda RANGE/LIST partitionering med HASH/KEY partitionering fr subpartitionering" swe "Det r endast mjligt att blanda RANGE/LIST partitionering med HASH/KEY partitionering fr subpartitionering"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment