diff options
Diffstat (limited to 'sql/item_windowfunc.h')
-rw-r--r-- | sql/item_windowfunc.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sql/item_windowfunc.h b/sql/item_windowfunc.h index c5c2c0aa004..a83147fc7a1 100644 --- a/sql/item_windowfunc.h +++ b/sql/item_windowfunc.h @@ -1137,6 +1137,21 @@ public: } } + void setting_handler_for_percentile_functions(Item_result rtype) const + { + switch(window_func()->sum_func()){ + case Item_sum::PERCENTILE_DISC_FUNC: + ((Item_sum_percentile_disc* ) window_func())->set_handler_by_cmp_type(rtype); + break; + default: + return; + } + } + + bool check_result_type_of_order_item(); + + + /* Computation functions. TODO: consoder merging these with class Group_bound_tracker. |