• 's avatar
    Bug #49137 Replication failure on SBR/MBR + multi-table DROP TEMPORARY TABLE · ccc3a468
    authored
          
    In statement-based or mixed-mode replication, use DROP TEMPORARY TABLE
    to drop multiple tables causes different errors on master and slave, 
    when one or more of these tables do not exist. Because when executed
    on slave, it would automatically add IF EXISTS to the query to ignore
    all ER_BAD_TABLE_ERROR errors.
    
    To fix the problem, do not add IF EXISTS when executing DROP TEMPORARY
    TABLE on the slave, and clear the ER_BAD_TABLE_ERROR error after
    execution if the query does not expect any errors.
    ccc3a468
sql_parse.cc 244 KB