Skip to content
  • Roy Lyseng's avatar
    b818af26
    Bug#14831335: Crash with SQL_BUFFER_RESULT and PROCEDURE ANALYSE · b818af26
    Roy Lyseng authored
    The problem here is that PROCEDURE ANALYSE binds to the items of
    the temporary table dictated by SQL_BUFFER_RESULT.
    This temporary table is released in do_select() in the call to
    join->join_free(), just before calling join->result->send_eof(),
    which applies the analysis function.
    
    The problem is fixed by delaying removal of temporary table metadata
    from JOIN_TAB::cleanup() to JOIN::destroy().
    b818af26
    Bug#14831335: Crash with SQL_BUFFER_RESULT and PROCEDURE ANALYSE
    Roy Lyseng authored
    The problem here is that PROCEDURE ANALYSE binds to the items of
    the temporary table dictated by SQL_BUFFER_RESULT.
    This temporary table is released in do_select() in the call to
    join->join_free(), just before calling join->result->send_eof(),
    which applies the analysis function.
    
    The problem is fixed by delaying removal of temporary table metadata
    from JOIN_TAB::cleanup() to JOIN::destroy().
Loading