summaryrefslogtreecommitdiff
path: root/sql/item_sum.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-06-10 10:59:55 +0300
committerbell@sanja.is.com.ua <>2004-06-10 10:59:55 +0300
commitba82b9e7d5e3b0975569e605ce982e2d7df1fc8b (patch)
tree843e4e7d10f5b0100a82cd522e1a21416d20f204 /sql/item_sum.cc
parentaa3c80fb7d1e22f080209f06e6c7d31ed3c85237 (diff)
downloadmariadb-git-ba82b9e7d5e3b0975569e605ce982e2d7df1fc8b.tar.gz
cleunup() of count() and max()/min() added (BUG#2687)
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r--sql/item_sum.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc
index 0c5b29fc069..098ccf70861 100644
--- a/sql/item_sum.cc
+++ b/sql/item_sum.cc
@@ -361,6 +361,16 @@ longlong Item_sum_count::val_int()
return (longlong) count;
}
+
+void Item_sum_count::cleanup()
+{
+ DBUG_ENTER("Item_sum_count::cleanup");
+ Item_sum_int::cleanup();
+ used_table_cache= ~(table_map) 0;
+ DBUG_VOID_RETURN;
+}
+
+
/*
Avgerage
*/
@@ -575,6 +585,15 @@ Item_sum_hybrid::val_str(String *str)
}
+void Item_sum_hybrid::cleanup()
+{
+ DBUG_ENTER("Item_sum_hybrid::cleanup");
+ Item_sum::cleanup();
+ used_table_cache= ~(table_map) 0;
+ DBUG_VOID_RETURN;
+}
+
+
Item *Item_sum_min::copy_or_same(THD* thd)
{
return new (&thd->mem_root) Item_sum_min(thd, this);