summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/item.cc b/sql/item.cc
index c34d27fa63b..2ff9d4e4a44 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -1986,6 +1986,9 @@ void Item::split_sum_func2(THD *thd, Ref_ptr_array ref_pointer_array,
&ref_pointer_array[el], 0, 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)