Subject | Re: Record Locking |
---|---|
Author | Alexander V.Nevsky |
Post date | 2004-04-29T13:10:02Z |
> >> Is it also possible to lock a range of selectedIf someone want entirely emulate MSSQL behaviour and lock records
> >> record for instance child records of a master record for reading and
> >> writing until my thread is finished ?
>
> > Doing a dummy update on a record will "lock" it for
> > other transactions.
>
> > eg:
>
> > UPDATE mytable SET ID = ID WHERE ID = :MyID
>
> Or use the newly introduced WITH LOCK clause in FB 1.5(details in the
> release notes).
for both _read_ and write, he should use read_commited no_rec_version
isolation level in addition to write locking. Good luck ;)
Best regards,
ALexander.