Suppose you have one table for a Desktop application and several users. When a user opens a record, i want to lock this record. I have tried "WITH LOCK" statement. It works fine. But when a second users want to update the same record, i want to put a message "Sorry, you cannot work on this order because it is locked. Somebody else has opened this record before you". Firebird waits the first user to commit/rollback. I don t want to wait. I want to put an error message. Is there a simple way to ask firebird record lock status ?
Is there a way to lock a full table ? Or to put a semaphore/mutex (like get_lock on mysql) i have tried reserving on set transaction statement but it does not work. My wish is to display a message to the user. Not waiting.
Thanks