Which transaction is used by IBCQuery.Delete ?

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
rmy
Posts: 2
Joined: Mon 14 Jun 2010 08:58

Which transaction is used by IBCQuery.Delete ?

Post by rmy » Mon 14 Jun 2010 10:49

I have a TIBCQuery which UpdateTransaction property is connected to a TIBCTransaction component with IsolationLevel = iblReadCommited.
the Transaction property of the IBCQuery is set to default with IsolationLevel = iblReadOnlyCommited (as suggested by Devart Team).
when updating data everything works fine, the UpdateTransaction is used.
when deleting a record from the dataset with IBCQuery.Delete it seems the default transaction is used and an error occurs:
"attempted update during read-only transaction"
changing the IsolationLevel of the default Transaction to iblReadCommited removes the error.
Help says for any operations modifying the dataset the UpdateTransaction is used. Why isn't it used for delete ?

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Mon 14 Jun 2010 13:28

TIBCQuery uses UpdateTransaction to delete a record as well.

Please, try to compose a small sample to demonstrate the problem and send it to dmitryg*devart*com.

Post Reply