For commands (1) alter table t1 add partition (partition p2); (2) alter table t1 add partition (partition px history); It printed the same error message: Wrong partitioning type, expected type: `SYSTEM_TIME` For (1) it is not clear from the syntax that we are trying to add HASH partition. For (2) it is not clear that the table partitioning is different than SYSTEM_TIME. Now it prints what type we are trying to add to what type of partitioning.
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -9773,9 +9773,9 @@ ER_UNUSED_23 | ||
| spa "Nunca debería vd de ver esto" | ||
|
|
||
| ER_PARTITION_WRONG_TYPE | ||
| chi "错误的分区类型,预期类型:%`s" | ||
| eng "Wrong partitioning type, expected type: %`s" | ||
| spa "Tipo de partición equivocada, tipo esperado: %`s" | ||
| chi "错误的分区类型,预期类型:%`s for partitioning by %`s" | ||
| eng "Wrong partition type %`s for partitioning by %`s" | ||
| spa "Tipo de partición equivocada, tipo esperado: %`s for partitioning by %`s" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
dr-m
Contributor
|
||
|
|
||
| WARN_VERS_PART_FULL | ||
| chi "版本化表%`s.%`s:partition%`s已满,添加更多历史分区(out of %s)" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -9739,7 +9739,7 @@ bool LEX::part_values_current(THD *thd) | ||
| { | ||
| if (unlikely(part_info->part_type != VERSIONING_PARTITION)) | ||
| { | ||
| my_error(ER_PARTITION_WRONG_TYPE, MYF(0), "SYSTEM_TIME"); | ||
| part_type_error(thd, NULL, "CURRENT", part_info); | ||
This comment has been minimized.
Sorry, something went wrong.
dr-m
Contributor
|
||
| return true; | ||
| } | ||
| } | ||
| @@ -9766,7 +9766,7 @@ bool LEX::part_values_history(THD *thd) | ||
| { | ||
| if (unlikely(part_info->part_type != VERSIONING_PARTITION)) | ||
| { | ||
| my_error(ER_PARTITION_WRONG_TYPE, MYF(0), "SYSTEM_TIME"); | ||
| part_type_error(thd, NULL, "HISTORY", part_info); | ||
This comment has been minimized.
Sorry, something went wrong. |
||
| return true; | ||
| } | ||
| } | ||
The declaration of
part_type_error()is missing a guard: