• Georgi Kodinov's avatar
    Bug#34773: query with explain extended and derived table / other table · b5f152dc
    Georgi Kodinov authored
    crashes server
    
    When creating temporary table that contains aggregate functions a 
    non-reversible source transformation was performed to redirect aggregate
    function arguments towards temporary table columns.
    This caused EXPLAIN EXTENDED to fail because it was trying to resolve
    references to the (freed) temporary table.
    Fixed by preserving the original aggregate function arguments and
    using them (instead of the transformed ones) for EXPLAIN EXTENDED.
    b5f152dc
explain.result 7.41 KB