diff options
author | unknown <mikael@dator5.(none)> | 2006-07-05 12:57:23 -0400 |
---|---|---|
committer | unknown <mikael@dator5.(none)> | 2006-07-05 12:57:23 -0400 |
commit | 43179555d90d1aee70d196e918e981f70168eb8d (patch) | |
tree | 8f36a7bb24ca74f2a63dee7cf39c872db64f6570 /sql/ha_partition.h | |
parent | 60d070b2736fb3d326eacd973a5af9a2ba094c84 (diff) | |
download | mariadb-git-43179555d90d1aee70d196e918e981f70168eb8d.tar.gz |
BUG#20770: DATA DIRECTORY and INDEX DIRECTORY error when ALTER TABLE ADD/DROP/REORGANIZE partition
Also some error in handling options for subpartitions.
mysql-test/r/partition.result:
New test cases
mysql-test/t/partition.test:
New test cases
sql/ha_partition.cc:
Added partition_element to prepare_new_partition so that we can properly set-up table
before creating partitions.
sql/ha_partition.h:
Added partition_element to prepare_new_partition so that we can properly set-up table
before creating partitions.
sql/sql_yacc.yy:
Ensure that subpartitions always inherit options from the partition they belong to.
They can change it afterwards but will use the options as set on partition level
if set at that level.
Diffstat (limited to 'sql/ha_partition.h')
-rw-r--r-- | sql/ha_partition.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/ha_partition.h b/sql/ha_partition.h index 4c627cd50f8..cbf87ae3a92 100644 --- a/sql/ha_partition.h +++ b/sql/ha_partition.h @@ -202,7 +202,8 @@ private: int copy_partitions(ulonglong *copied, ulonglong *deleted); void cleanup_new_partition(uint part_count); int prepare_new_partition(TABLE *table, HA_CREATE_INFO *create_info, - handler *file, const char *part_name); + handler *file, const char *part_name, + partition_element *p_elem); /* delete_table, rename_table and create uses very similar logic which is packed into this routine. @@ -222,7 +223,8 @@ private: void set_up_table_before_create(TABLE *table_arg, const char *partition_name_with_path, HA_CREATE_INFO *info, - uint part_id); + uint part_id, + partition_element *p_elem); partition_element *find_partition_element(uint part_id); public: |