• Tor Didriksen's avatar
    Bug#16359402 CRASH WITH AGGREGATES: ASSERTION FAILED: N < M_SIZE · 57129a3a
    Tor Didriksen authored
    Post push fix:
    setup_ref_array() now uses n_sum_items to determine size of ref_pointer_array.
    The problem was that n_sum_items kept growing, it wasn't reset for each query.
    
    A similar memory leak was fixed with the patch for:
    Bug 14683676 ENDLESS MEMORY CONSUMPTION IN SETUP_REF_ARRAY WITH MAX IN SUBQUERY
    57129a3a
sql_lex.cc 94 KB