Commit 96565ac3 authored by Varun Gupta's avatar Varun Gupta

Added the function setting_handler_for_percentile_function() for the...

Added the function setting_handler_for_percentile_function() for the percentile_disc function that would
set the type of the result field for percentile_disc. Percentile_cont would habe double precision result type
parent 33057798
......@@ -1137,6 +1137,21 @@ class Item_window_func : public Item_func_or_sum
}
}
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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment