INF: Determining If a Row Has Been Changed in Browse Mode

ID Number: Q45259

1.10 1.11 4.20

OS/2

Summary:

In browse mode, it is possible for user 1 to determine that user 2 has

made a change to a row without actually issuing an update to that row.

You do this by issuing a select with the same WHERE clause

(constructed by dbqual) that would have been used for the update. If

the select returns a 532 error, the timestamp has changed since you

last read the row. If you use this technique, be aware that there is

no protection against another user changing the row right after it is

tested, unless you select with HOLDLOCK.

Additional reference words: DB-LIBRARY db-lib dblib