diff options
author | unknown <holyfoot@deer.(none)> | 2005-12-15 15:24:35 +0400 |
---|---|---|
committer | unknown <holyfoot@deer.(none)> | 2005-12-15 15:24:35 +0400 |
commit | 1b74cbd9d6817c0210904e0b324acbe61554e094 (patch) | |
tree | 945b17176ab5d62b6024f9dfd9e6c8535a87679d /sql/handler.h | |
parent | c5ebeb7969a3f68f9b15b909438392121fde668d (diff) | |
download | mariadb-git-1b74cbd9d6817c0210904e0b324acbe61554e094.tar.gz |
bug #15521 (Cannot reorganise a partition with a new name equal to the old name)
mysql-test/r/partition.result:
result fixed
mysql-test/r/partition_mgm_err.result:
result fixed
mysql-test/t/partition.test:
test case added
mysql-test/t/partition_mgm_err.test:
test modified to produce the declared error
sql/handler.h:
check_reorganise_list interface
sql/sql_partition.cc:
check_reorganise_list implementation
sql/sql_table.cc:
now we call check_reorganise_list to do proper test.
Also we should set right no_parts value as it can change here
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/handler.h b/sql/handler.h index b4b90cbfaa8..5674698487c 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -717,6 +717,9 @@ typedef struct st_ha_check_opt bool is_partition_in_list(char *part_name, List<char> list_part_names); bool is_partitions_in_table(partition_info *new_part_info, partition_info *old_part_info); +bool check_reorganise_list(partition_info *new_part_info, + partition_info *old_part_info, + List<char> list_part_names); bool set_up_defaults_for_partitioning(partition_info *part_info, handler *file, ulonglong max_rows, |