Subject | Re: [firebird-support] get_lock / release_lock |
---|---|
Author | Ivan Prenosil |
Post date | 2008-07-31T09:33:11Z |
> So, you say that I can modify for 30 minutes a document and then I try to- start transaction
> see if I can commit the changes?
> I need to know that I can comit the changes before I begin to modify the
> doc. It is like pessimistic locking but without any record lock.
- read the record you want to modify using SELECT ... WITH LOCK
(which will fail in case other user is already editing it)
- play with document
- when done, update the record
- commit
Ivan