From 14e1d69aeaa09075fe3ec609d5ccdcf899508d7d Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 3 Jun 2006 18:37:31 -0400 Subject: BUG#19067: Crash for default subpartitioning when altering the table mysql-test/r/information_schema_part.result: Bug fix sql/partition_element.h: Review fixes sql/sql_partition.cc: Review fixes --- sql/partition_element.h | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) (limited to 'sql/partition_element.h') diff --git a/sql/partition_element.h b/sql/partition_element.h index bd68d8b18ea..90d0bda87c1 100644 --- a/sql/partition_element.h +++ b/sql/partition_element.h @@ -64,24 +64,20 @@ public: engine_type(NULL),part_state(PART_NORMAL), nodegroup_id(UNDEF_NODEGROUP), has_null_value(FALSE) { - subpartitions.empty(); - list_val_list.empty(); } partition_element(partition_element *part_elem) - : partition_name(NULL), range_value(0), has_null_value(FALSE) + : part_max_rows(part_elem->part_max_rows), + part_min_rows(part_elem->part_min_rows), + partition_name(NULL), + tablespace_name(part_elem->tablespace_name), + range_value(0), 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), + 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