diff options
author | unknown <bell@sanja.is.com.ua> | 2003-02-02 23:30:01 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2003-02-02 23:30:01 +0200 |
commit | e1134143e8b6feff7fcab4354cf7c951dba09f81 (patch) | |
tree | b229dc72a1874a4a2e8c467d58a8a97d6cd597f4 /sql/item_sum.cc | |
parent | 982262333345aab1644ba80fae457d0400a10b16 (diff) | |
download | mariadb-git-e1134143e8b6feff7fcab4354cf7c951dba09f81.tar.gz |
after-review changes (577 SCRUM)
sql/item.cc:
typo fix
sql/item.h:
typo fix
sql/item_cmpfunc.cc:
comment
sql/item_func.cc:
new interface
sql/item_subselect.cc:
comment inserted
sql/item_sum.cc:
layout fixed
comment inserted
sql/mysql_priv.h:
names changed
sql/sql_base.cc:
some optimization
sql/sql_delete.cc:
name changed
sql/sql_insert.cc:
name changed
sql/sql_lex.h:
name changed
sql/sql_prepare.cc:
layout fixed
sql/sql_select.cc:
layout fixed
names changed
comments inserted
debugging code removed
sql/sql_select.h:
name changed
sql/sql_union.cc:
name changed
layout fixed
sql/sql_update.cc:
name changed
sql/sql_yacc.yy:
typo fixed
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r-- | sql/item_sum.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc index 7ded4921180..c2725ed28cf 100644 --- a/sql/item_sum.cc +++ b/sql/item_sum.cc @@ -51,7 +51,7 @@ Item_sum::Item_sum(THD *thd, Item_sum &item): else if (!(args=(Item**) sql_alloc(sizeof(Item*)*arg_count))) return; - for(uint i= 0; i < arg_count; i++) + for (uint i= 0; i < arg_count; i++) args[i]= item.args[i]; } @@ -999,6 +999,10 @@ int dump_leaf(byte* key, uint32 count __attribute__((unused)), Item_sum_count_distinct::~Item_sum_count_distinct() { + /* + Free table and tree if they belong to this item (if item have not pointer + to original item from which was made copy => it own its objects ) + */ if (!original) { if (table) |