• evgen@moonbone.local's avatar
    Bug#19978: INSERT .. ON DUPLICATE erroneously reports some records were · 96836990
    evgen@moonbone.local authored
    updated.
    
    INSERT ... ON DUPLICATE KEY UPDATE reports that a record was updated when
    the duplicate key occurs even if the record wasn't actually changed
    because the update values are the same as those in the record.
    
    Now the compare_record() function is used to check whether the record was
    changed and the update of a record reported only if the record differs
    from the original one.
    96836990
sql_insert.cc 92 KB