diff options
author | kostja@bodhi.local <> | 2006-10-23 12:35:56 +0400 |
---|---|---|
committer | kostja@bodhi.local <> | 2006-10-23 12:35:56 +0400 |
commit | 2fecf79536828c52b36b6e7927d64bda5c97eab0 (patch) | |
tree | 55d8dd8c7c418b931fb38f3ee01b272e6327b15d /sql/item_sum.h | |
parent | 4cb57ac0485e69a84f27d5136e68018b67dd7132 (diff) | |
parent | 643606cac9ee6e7ca3deefaf2a98af85223eff29 (diff) | |
download | mariadb-git-2fecf79536828c52b36b6e7927d64bda5c97eab0.tar.gz |
Merge bodhi.local:/opt/local/work/mysql-5.0-runtime
into bodhi.local:/opt/local/work/mysql-5.1-runtime-merge
Diffstat (limited to 'sql/item_sum.h')
-rw-r--r-- | sql/item_sum.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sql/item_sum.h b/sql/item_sum.h index 0204e88a9e1..eb4c21bbe06 100644 --- a/sql/item_sum.h +++ b/sql/item_sum.h @@ -643,8 +643,8 @@ public: Field *create_tmp_field(bool group, TABLE *table, uint convert_blob_length); void cleanup() { - clear(); - Item_sum_num::cleanup(); + count= 0; + Item_sum_sum::cleanup(); } }; @@ -727,7 +727,8 @@ public: enum Item_result result_type () const { return REAL_RESULT; } void cleanup() { - clear(); + cur_dec= 0; + count= 0; Item_sum_num::cleanup(); } }; @@ -862,7 +863,7 @@ public: { decimals= 0; max_length=21; unsigned_flag= 1; maybe_null= null_value= 0; } void cleanup() { - clear(); + bits= reset_bits; Item_sum_int::cleanup(); } }; |