ibcquery transaction

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

ibcquery transaction

Post by calou » Sun 19 Oct 2008 10:16

Hello,

I use IBCQuery liked with an ibctransaction (properties by defaults)
Suppose I do that

IBCQuery .SQL.Text:='select * from ma table where COL='+QuotedStr('test');
IBCQuery.Open;

For the select, I don't use transaction. What happen if the sql code is wrong? What about the database? it is in a wrong state?

In these cases (read data, do SUM, do COUNT etc… but not write data) what is the best to do? Like above or use transaction to?

Thank you for help

Regards

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

Post by Plash » Mon 20 Oct 2008 14:48

The database will not be in the wrong state. You don't need to use transaction.

Post Reply