• unknown's avatar
    Bug #29157: UPDATE, changed rows incorrect · ba4682ae
    unknown authored
    Sometimes the number of really updated rows (with changed
    column values) cannot be determined at the server level
    alone (e.g. if the storage engine does not return enough
    column values to verify that). So the only dependable way
    in such cases is to let the storage engine return that
    information if possible.
    Fixed the bug at server level by providing a way for the 
    storage engine to return information about wether it 
    actually updated the row or the old and the new column 
    values are the same. It can do that by returning 
    HA_ERR_RECORD_IS_THE_SAME in ha_update_row().
    Note that each storage engine may choose not to try to
    return this status code, so this behaviour remains 
    storage engine specific.
    
    
    include/my_base.h:
      Bug #29157: handle the row not updated special return value
    sql/log_event.cc:
      Bug #29157: handle the row not updated special return value
    sql/sp.cc:
      Bug #29157: handle the row not updated special return value
    sql/sql_acl.cc:
      Bug #29157: handle the row not updated special return value
    sql/sql_insert.cc:
      Bug #29157: handle the row not updated special return value
    sql/sql_servers.cc:
      Bug #29157: handle the row not updated special return value
    sql/sql_update.cc:
      Bug #29157: handle the row not updated special return value
    ba4682ae
sql_insert.cc 119 KB