• Alfranio Correia's avatar
    BUG#59338 Inconsistency in binlog for statements that don't change any rows STATEMENT SBR · 66abb3d1
    Alfranio Correia authored
    In SBR, if a statement does not fail, it is always written to the binary
    log, regardless if rows are changed or not. If there is a failure, a
    statement is only written to the binary log if a non-transactional (.e.g.
    MyIsam) engine is updated.
    
    INSERT ON DUPLICATE KEY UPDATE and INSERT IGNORE were not following the
    rule above and were not written to the binary log, if then engine was
    Innodb.
    66abb3d1
rpl_insert_duplicate.test 2.81 KB