diff options
author | unknown <mikael/pappa@dator5.(none)> | 2006-07-15 04:06:31 -0400 |
---|---|---|
committer | unknown <mikael/pappa@dator5.(none)> | 2006-07-15 04:06:31 -0400 |
commit | e1f890e8a3175771bb8b2c49db542f685f003dbf (patch) | |
tree | 27cabcbb295a8a11976458c162f765ab991e8acb /sql/sql_yacc.yy | |
parent | 906cd90d936e384af54c1f4e75ebb56bd2f6b148 (diff) | |
parent | 3a15969c9c6f94e50f094b1a97d140995697775f (diff) | |
download | mariadb-git-e1f890e8a3175771bb8b2c49db542f685f003dbf.tar.gz |
Merge dator5.(none):/home/pappa/clean-mysql-5.1
into dator5.(none):/home/pappa/push_tree_w28
sql/ha_partition.cc:
Auto merged
sql/sql_yacc.yy:
Auto merged
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r-- | sql/sql_yacc.yy | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index 8ce5bbc87aa..e345b61e41e 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -3734,14 +3734,15 @@ sub_part_definition: { LEX *lex= Lex; partition_info *part_info= lex->part_info; - partition_element *p_elem= new partition_element(); - if (!p_elem || - part_info->current_partition->subpartitions.push_back(p_elem)) + partition_element *curr_part= part_info->current_partition; + partition_element *sub_p_elem= new partition_element(curr_part); + if (!sub_p_elem || + curr_part->subpartitions.push_back(sub_p_elem)) { mem_alloc_error(sizeof(partition_element)); YYABORT; } - part_info->curr_part_elem= p_elem; + part_info->curr_part_elem= sub_p_elem; part_info->use_default_subpartitions= FALSE; part_info->use_default_no_subpartitions= FALSE; part_info->count_curr_subparts++; |