• evgen@moonbone.local's avatar
    Bug#28904: INSERT .. ON DUPLICATE was silently updating rows when it shouldn't. · 4cdbe25a
    evgen@moonbone.local authored
    When the INSERT .. ON DUPLICATE KEY UPDATE has to update a matched row but
    the new data is the same as in the record then it returns as if
    no rows were inserted or updated. Nevertheless the row is silently
    updated. This leads to a situation when zero updated rows are reported 
    in the case when data has actually been changed.
    
    Now the write_record function updates a row only if new data differs from
    that in the record.
    4cdbe25a
sql_insert.cc 104 KB