summaryrefslogtreecommitdiff
path: root/sql/item_sum.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-12-07 09:07:37 +0200
committerbell@sanja.is.com.ua <>2004-12-07 09:07:37 +0200
commitb218560604abe698eb7341373afb72e15aa05ad2 (patch)
tree24b6477125edcd735f83e296143509ac2e5a751c /sql/item_sum.cc
parentf30049f4114f0bb8961eb6ad6886e9e506c4b922 (diff)
parentf5e253dc2f94029cf2904702c197aa01537ddab4 (diff)
downloadmariadb-git-b218560604abe698eb7341373afb72e15aa05ad2.tar.gz
merge
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r--sql/item_sum.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc
index c43a7d87f8f..7bc70052920 100644
--- a/sql/item_sum.cc
+++ b/sql/item_sum.cc
@@ -537,9 +537,22 @@ void Item_sum_hybrid::cleanup()
DBUG_ENTER("Item_sum_hybrid::cleanup");
Item_sum::cleanup();
used_table_cache= ~(table_map) 0;
+ /*
+ by default is is TRUE to avoid TRUE reporting by
+ Item_func_not_all/Item_func_nop_all if this item was never called.
+
+ no_rows_in_result() set it to FALSE if was not results found.
+ */
+ was_values= TRUE;
DBUG_VOID_RETURN;
}
+void Item_sum_hybrid::no_rows_in_result()
+{
+ Item_sum::no_rows_in_result();
+ was_values= FALSE;
+}
+
Item *Item_sum_min::copy_or_same(THD* thd)
{