From 661537c744232bb2e110bf9e8973deb962d2a72b Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 21 Apr 2006 08:43:07 -0400 Subject: BUG#19067: Crash when ALTER TABLE for default subpartitioned table mysql-test/r/partition.result: New test cases mysql-test/r/partition_02myisam.result: ENGINE always specified per partition in show table mysql-test/t/partition.test: New test cases sql/partition_element.h: New copy constructor for partition_element sql/partition_info.cc: Use new copy constructor to ensure default subpartitions inherit partition options from parent Ensure engine is always set on both partitions and subpartitions sql/sql_partition.cc: Removed unneeded bool to generate_partition_syntax Write partition options also for subpartitioned tables when subpartitioning is by default Set up defaults for new partitions also in REORGANIZE PARTITION sql/sql_partition.h: Removed unneeded parameter to generate_partition_syntax call sql/sql_show.cc: Removed unneeded parameter to generate_partition_syntax call sql/sql_table.cc: Removed unneeded parameter to generate_partition_syntax call --- sql/partition_element.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'sql/partition_element.h') diff --git a/sql/partition_element.h b/sql/partition_element.h index d20715d2408..51a54771ee3 100644 --- a/sql/partition_element.h +++ b/sql/partition_element.h @@ -63,5 +63,21 @@ public: subpartitions.empty(); list_val_list.empty(); } + partition_element(partition_element *part_elem) + : partition_name(NULL), range_value(0), has_null_value(FALSE) + { + subpartitions.empty(); + list_val_list.empty(); + + part_max_rows= part_elem->part_max_rows; + part_min_rows= part_elem->part_min_rows; + tablespace_name= part_elem->tablespace_name; + part_comment= part_elem->part_comment; + data_file_name= part_elem->data_file_name; + index_file_name= part_elem->index_file_name; + engine_type= part_elem->engine_type; + part_state= part_elem->part_state; + nodegroup_id= part_elem->nodegroup_id; + } ~partition_element() {} }; -- cgit v1.2.1