• evgen@moonbone.local's avatar
    Bug#29310: An InnoDB table was updated when the data wasn't actually changed. · 42d1e3c4
    evgen@moonbone.local authored
    When a table is being updated it has two set of fields - fields required for
    checks of conditions and fields to be updated. A storage engine is allowed
    not to retrieve columns marked for update. Due to this fact records can't
    be compared to see whether the data has been changed or not. This makes the
    server always update records independently of data change.
    
    Now when an auto-updatable timestamp field is present and server sees that
    a table handle isn't going to retrieve write-only fields then all of such
    fields are marked as to be read to force the handler to retrieve them.
    42d1e3c4
innodb_mysql.result 29.6 KB