Subject Re: [firebird-support] Transactions in firebird (on behalf of Slavo)
Author Ann W. Harrison
Adam wrote:
>
> Now I use
> ibase_trans(IBASE_WRITE|IBASE_COMMITTED|IBASE_REC_NO_VERSION|IBASE_WAIT,$dbhi
> );
> Can you please help me?

Yes. Don't use IBASE_REC_NO_VERSION.

In that mode, read/write conflicts are reported as deadlock
errors. For example, you read all of table 1. I add a
a record to table 1, without committing. You read all of
table 1 again. If you're in IBASE_REC_NO_VERSION, you
get a deadlock error. Without that, you see exactly the
same records you saw before.

Which result do you prefer?


Regards,


Ann