summaryrefslogtreecommitdiff
path: root/sql/item_sum.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2004-06-10 10:59:55 +0300
committerunknown <bell@sanja.is.com.ua>2004-06-10 10:59:55 +0300
commit8e6b48f808882e0586beb09259c329729f475015 (patch)
tree843e4e7d10f5b0100a82cd522e1a21416d20f204 /sql/item_sum.cc
parent350ad5003e90c4129a69937afaf7d87b828a506c (diff)
downloadmariadb-git-8e6b48f808882e0586beb09259c329729f475015.tar.gz
cleunup() of count() and max()/min() added (BUG#2687)
mysql-test/r/func_group.result: test of optimized aggregate function re-execution mysql-test/t/func_group.test: test of optimized aggregate function re-execution sql/item_sum.cc: cleunup() added sql/item_sum.h: cleunup() added
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);