Milan:
You are confusing the ifx_replcheck shadow column with the two VERCOLS shadow columns ifx_insert_checksum and ifx_row_version. The ifx_replcheck shadow column is a single column that just has a pseudo-timestamp in it. That value will always change when the row is updated whether with the same values or different values or even if it was deleted and re-inserted with the same values.
Just for completeness, the VERCOLS column ifx_insert_checksum contains a checksum of the row as it was when the row was inserted and does not change when the row is updated. The ifx_row_version starts at 1 and is incremented whenever the row is updated.
So, here are the scenarios describing the behavior of the VERCOLS shadow columns:
- Row was deleted and reinserted with the same values:
The ifx_row_version will be 1 and the ifx_insert_checksum will be the same.
- Row was deleted and reinserted with different values:
The ifx_row_version will be 1 and the ifx_insert_checksum will be different
- Row was updated to the same values:
The ifx_row_version will have increased and the ifx_insert_checksum will be unchanged.
- Row was updated to different values in one or more columns:
The ifx_row_version will have increased and the ifx_insert_checksum will be unchanged.
Art
------------------------------
Art S. Kagel, President and Principal Consultant
ASK Database Management Corp.
www.askdbmgt.com------------------------------