mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
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:
parent
330577988f
commit
96565ac311
1 changed files with 15 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue