• unknown's avatar
    Small cleanup of derived tables handling. · 5bc79c0c
    unknown authored
    We should not call free_tmp_table() for derived table in 
    mysql_derived_filling(), since by this moment this table is already
    registered in THD::derived_tables list and thus free_tmp_table() will
    be called for it automatically in close_thread_tables().
    
    
    sql/sql_derived.cc:
      We should not call free_tmp_table() for derived table in 
      mysql_derived_filling(), since by this moment this table is already
      registered in THD::derived_tables list and thus free_tmp_table() will
      be called for it automatically in close_thread_tables().
    5bc79c0c
sql_derived.cc 7.6 KB