diff options
| author | Aleksey Midenkov <midenok@gmail.com> | 2022-11-11 14:37:40 +0300 |
|---|---|---|
| committer | Aleksey Midenkov <midenok@gmail.com> | 2022-11-11 20:54:20 +0300 |
| commit | 0e6f2757d11502d74d21e4a75fa5247fc3334024 (patch) | |
| tree | 77a747f319d4ebfc40e6f53740fe10bba15331f6 /sql/sql_lex.h | |
| parent | 08e2c98ec81d6fb23b0a8079107d4c74d3a8ec02 (diff) | |
| download | mariadb-git-bb-10.7-midenok.tar.gz | |
MDEV-29841 More descriptive text for ER_PARTITION_WRONG_TYPEbb-10.7-midenok
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.
Fixed warning unused function rename_field_in_list() for compilation
without partitioning.
Diffstat (limited to 'sql/sql_lex.h')
| -rw-r--r-- | sql/sql_lex.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h index 6f3467fcd86..c16947edc5a 100644 --- a/sql/sql_lex.h +++ b/sql/sql_lex.h @@ -3776,8 +3776,10 @@ public: bool table_or_sp_used(); bool is_partition_management() const; +#ifdef WITH_PARTITION_STORAGE_ENGINE bool part_values_current(THD *thd); bool part_values_history(THD *thd); +#endif /** @brief check if the statement is a single-level join |
