summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/item.cc b/sql/item.cc
index 7279c79cef9..5f08f26b1de 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -2193,6 +2193,9 @@ void Item::split_sum_func2(THD *thd, Ref_ptr_array ref_pointer_array,
point to the temporary table.
*/
split_sum_func(thd, ref_pointer_array, fields, split_flags);
+ if (type() == FUNC_ITEM) {
+ return;
+ }
}
else
{
@@ -2252,9 +2255,6 @@ void Item::split_sum_func2(THD *thd, Ref_ptr_array ref_pointer_array,
&name))))
return; // fatal_error is set
}
- else if (type() == FUNC_ITEM &&
- ((Item_func *) this)->with_window_func)
- return;
else
{
if (!(item_ref= (new (thd->mem_root)