summaryrefslogtreecommitdiff
path: root/sql/item_windowfunc.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-02-27 10:07:59 +0400
committerAlexander Barkov <bar@mariadb.org>2017-02-27 10:07:59 +0400
commit47b7ffb396bd283bd4196194311ba39ed9692421 (patch)
treeee69ec3d890c77a123f66b5c27ac0697163491ad /sql/item_windowfunc.cc
parent3f83801d8266fa465d296dbe528a5ea132945a84 (diff)
parent78153cf641aea41166d3e79ae99b57b154f6a027 (diff)
downloadmariadb-git-47b7ffb396bd283bd4196194311ba39ed9692421.tar.gz
Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext
Diffstat (limited to 'sql/item_windowfunc.cc')
-rw-r--r--sql/item_windowfunc.cc13
1 files changed, 1 insertions, 12 deletions
diff --git a/sql/item_windowfunc.cc b/sql/item_windowfunc.cc
index 27eeeff6482..a89d0f84cef 100644
--- a/sql/item_windowfunc.cc
+++ b/sql/item_windowfunc.cc
@@ -150,6 +150,7 @@ void Item_window_func::split_sum_func(THD *thd, Ref_ptr_array ref_pointer_array,
Item **p_item= &window_func()->arguments()[i];
(*p_item)->split_sum_func2(thd, ref_pointer_array, fields, p_item, flags);
}
+ window_func()->setup_caches(thd);
}
@@ -220,18 +221,6 @@ void Item_sum_percent_rank::setup_window_func(THD *thd, Window_spec *window_spec
clear();
}
-bool Item_sum_first_value::add()
-{
- if (value_added)
- return false;
-
- /* TODO(cvicentiu) This is done like this due to how Item_sum_hybrid works.
- For this usecase we can actually get rid of arg_cache. arg_cache is just
- for running a comparison function. */
- value_added= true;
- Item_sum_hybrid_simple::add();
- return false;
-}
bool Item_sum_hybrid_simple::fix_fields(THD *thd, Item **ref)
{