Page 1 of 1

Prepared Statements and Transactions

Posted: Tue 09 Sep 2008 21:50
by NineBerry
Hi

I have noticed, that when a transaction is committed, all querys or sql-statements that had been prepared within that transaction, are not prepared any longer.

Is this a restriction by the Firebird server or is there any way to circumvent that behavior and keep statements prepared for use in multiple transaction (sequentially)?

Thanks in advance.

Posted: Wed 10 Sep 2008 07:01
by Plash
This is the restriction of InterBase/Firebird. Any statement is linked to a transaction and can be used only inside this transaction.

To keep statements prepared you can use CommitRetaining instead of Commit, or use several transactions.

Posted: Wed 10 Sep 2008 10:34
by NineBerry
Thank you for the information