Skip to content
Permalink
Browse files
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
  • Loading branch information
varunraiko committed Nov 1, 2017
1 parent 3305779 commit 96565ac
Showing 1 changed file with 15 additions and 0 deletions.
@@ -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.

0 comments on commit 96565ac

Please sign in to comment.