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:
@ -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);
|
||||
|
Reference in New Issue
Block a user