Subject | Re: [firebird-support] What transaction options to use? |
---|---|
Author | Ann W. Harrison |
Post date | 2004-11-22T23:32:45Z |
At 05:45 PM 11/22/2004, Chad Z. Hower wrote:
set transaction read only snapshot
set transaction snapshot
>1) Reads. For reads, I don't want them to see anything that has been changedThe tpb options are tpb_concurrency, tpb_read.
>since the transaction begun - that is they should see a snapshot as the db
>was when they started their Tx. If possible an erorr should be thrown if I
>attempt to do any writes (inserts or updates) in this type of transaction.
set transaction read only snapshot
>2) Updates. Updates should be like reads, but allow me to write. Updatestpb_concurrency, tpb_write
>should give me an error if I update a row that someone else updated since I
>started my transaction.
set transaction snapshot