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
This commit is contained in:
Varun Gupta 2017-07-17 15:02:22 +05:30
parent 330577988f
commit 96565ac311

View file

@ -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.