• unknown's avatar
    Bug #48350 truncate temporary table crashes replication · a2ed6829
    unknown authored
    In RBR, All statements operating on temporary tables should not be binlogged.
    Despite this fact, after executing 'TRUNCATE... ' on a temporary table, 
    the command is still logged, even if in row-based mode. Consequently, this raises
    problems in the slave as the table may not exist, resulting in an
    execution failure. Ultimately, this causes the slave to report
    an error and abort.
    
    After this patch, 'TRUNCATE ...' statement on a temporary table will not be
    binlogged in RBR.
    a2ed6829
sql_delete.cc 34.9 KB