Page 1 of 1

ibcquery transaction

Posted: Sun 19 Oct 2008 10:16
by calou
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

Posted: Mon 20 Oct 2008 14:48
by Plash
The database will not be in the wrong state. You don't need to use transaction.