1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Setting handler to have the return type as that of the element by which we are ordering the partition

This commit is contained in:
Varun Gupta
2017-06-26 03:53:27 +05:30
parent cc046fa92c
commit 31f1541f1e
4 changed files with 18 additions and 5 deletions

View File

@ -319,6 +319,10 @@ setup_windows(THD *thd, Ref_ptr_array ref_pointer_array, TABLE_LIST *tables,
while ((win_func_item= li++))
{
win_func_item->update_used_tables();
if (win_func_item->only_single_element_order_list())
{
((Item_sum_percentile_disc*)win_func_item)->set_type_handler(win_func_item->window_spec);
}
}
DBUG_RETURN(0);