transaction and ibcquery destruction

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
calou
Posts: 116
Joined: Tue 27 May 2008 12:46

transaction and ibcquery destruction

Post by calou » Thu 07 May 2009 12:37

Hello,

When i do this

ibcqry:=TIBCQuery.create(self)
ibcqry.SQL.Text:='....'
ibcqry.Open

An transaction is opened

If i do FreeAndNil(ibcqry) is the transaction is closed? if no what is the best way to close it?

Thanks

Regards

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 08 May 2009 07:28

Transaction is not closed when you free TIBCQuery.

You should use the Commit or Rollback method of TIBCConnection or TIBCTransaction to close the transaction.

Post Reply