Implementing updating a record and an equality test based on record primary key.