• Vicențiu Ciorbaru's avatar
    MDEV-13068 Crash in Item::split_sum_func2 with INSERT SELECT using window functions · 0992be92
    Vicențiu Ciorbaru authored
    When running setup fields during the final step of insert using select
    the final setup_fields does not have any sum functions. Our current
    condition for calling split_sum_func however would attempt to use an empty
    NULL sum_func_list, if the item contained a window function.
    
    The solution is to not perform another split_sum_func for the item
    containing a window function if we do not actually have a sum_func_list.
    0992be92
sql_base.cc 285 KB