TClientDataSet leaves transaction active

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
KeitaroBR
Posts: 3
Joined: Wed 21 Mar 2007 16:53
Location: Florianópolis - SC
Contact:

TClientDataSet leaves transaction active

Post by KeitaroBR » Wed 25 May 2011 21:36

Using TClientDataSet + TDataSetProvider + TIBCQuery leaves the transaction open after opening the TClientDataSet (even if the transaction is closed when the TClientDataSet is opened).

Is this expected behaviour?

AndreyZ

Post by AndreyZ » Thu 26 May 2011 12:17

Hello,

Yes, it's a designed behaviour of IBDAC. When a dataset is closed, we don't close connections and transactions. To make IBDAC close connections and transactions, you can set the DisconnectedMode option to True. The DisconnectedMode option is used to open a connection for performing a server call only when it's needed, and close a connection after performing the operation. For more information, please read the IBDAC documentation.

Post Reply