• Vicențiu Ciorbaru's avatar
    MDEV-13683: crash in Item_window_func::update_used_tables · 6c4cf79d
    Vicențiu Ciorbaru authored
    Window definitions are resolved during fix fields. Updating used tables
    for window functions must be done after all window functions have had a
    chance to be resolved.
    
    There was an additional problem with the implementation: expressions that
    contained window functions never updated the expression's used tables.
    To fix both these issues, make sure to call "update_used_tables" on all
    items that contain window functions after we have passed through all
    items.
    6c4cf79d
sql_window.cc 81.7 KB