Page 1 of 1

Multiple SQL statements in SQLInsert/SQLUpdate...

Posted: Tue 17 Mar 2009 15:21
by syagrius
Hello,

I plan to port an application to PgDac.
I need to execute multiple SQL statements for updating my database.
So I fill the SQLUpdate property of my TPgQuery.

And I get the following exception:
'cannot insert multiple commands into a prepared statement'

I tried to set UnpreparedExecute to True.
But UnpreparedExecute only affects SQL property (not SQLUpdate, SQLInsert...).

My code works when I use ProtocoleVersion pv20, but I really want to use pv30.

Do you have any suggestion ?
Thanks

Posted: Thu 19 Mar 2009 08:59
by Plash
This is a bug. We'll add a fix in the next PgDAC build. The UnpreparedExecute option will affect the update SQLs.