• Luis Soares's avatar
    BUG#54925: Assertion `query_arg && mysql_bin_log.is_open()' on · e5142047
    Luis Soares authored
    DROP TEMP TABLE
    
    Cset: alfranio.correia@sun.com-20100420091043-4i6ouzozb34hvzhb
    introduced a change that made drop temporary table to be always
    logged if current statement log format was set to row. This is
    fine. However, logging operations, for a "DROP TABLE" statement
    in mysql_rm_table_part2, are not protected by first checking if
    the mysql_bin_log is open before proceeding to the actual
    logging. They only check the dont_log_query variable. This was
    actually uncovered by the aforementioned cset and not introduced
    by it.
    
    We fix this by extending the condition used in the "if" that
    wraps logging operations in mysql_rm_table_part2.
    e5142047
sql_table.cc 258 KB