diff options
author | unknown <mikael@c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se> | 2006-04-20 14:11:54 -0400 |
---|---|---|
committer | unknown <mikael@c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se> | 2006-04-20 14:11:54 -0400 |
commit | 1727aec6304caec3326298f3026384436de48818 (patch) | |
tree | e9c5eb928678ce659df2a950977d4261f95ffaf9 /sql/sql_partition.cc | |
parent | cbdc730ae50aa5363dab071fe958608d8b223766 (diff) | |
download | mariadb-git-1727aec6304caec3326298f3026384436de48818.tar.gz |
BUG#19067: Alter table add partition for subpartitioned table crashes
Changed variable name for improved clarity and debugging possibilities
Fixed bug in not assigning subpart_type
mysql-test/t/partition.test:
Added new test case
sql/partition_info.cc:
Changed variable name for improved clarity and debugging possibilities
Fixed bug in not assigning subpart_type
sql/sql_partition.cc:
Changed variable name for improved clarity and debugging possibilities
Fixed bug in not assigning subpart_type
Diffstat (limited to 'sql/sql_partition.cc')
-rw-r--r-- | sql/sql_partition.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc index aae80f07b71..be85aad608f 100644 --- a/sql/sql_partition.cc +++ b/sql/sql_partition.cc @@ -3949,6 +3949,7 @@ uint prep_alter_part_table(THD *thd, TABLE *table, ALTER_INFO *alter_info, DBUG_RETURN(TRUE); } alt_part_info->part_type= tab_part_info->part_type; + alt_part_info->subpart_type= tab_part_info->subpart_type; if (alt_part_info->set_up_defaults_for_partitioning(table->file, ULL(0), tab_part_info->no_parts)) @@ -4513,7 +4514,7 @@ the generated partition syntax in a correct manner. tab_part_info->use_default_no_subpartitions= FALSE; } if (tab_part_info->check_partition_info((handlerton**)NULL, - table->file, ULL(0))) + table->file, ULL(0))) { DBUG_RETURN(TRUE); } |