PQsendQueryParams() causes prepared statement error
PQsendQueryParams() causes prepared statement error
От:
Denis Feklushkin <denis.feklushkin@gmail.com>
Дата:
in 9.2.0: PQsendQueryParams() with multiple command statement (like "select 123; select 456") unexpectedly causes error: "cannot insert multiple commands into a prepared statement." But PQsendQuery() works fine.
Re: PQsendQueryParams() causes prepared statement error
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Denis Feklushkin writes: > in 9.2.0: > PQsendQueryParams() with multiple command statement (like "select 123; > select 456") unexpectedly causes error: > "cannot insert multiple commands into a prepared statement." This is not a bug, it's intentional (and documented) behavior. regards, tom lane
Re: PQsendQueryParams() causes prepared statement error
От:
Denis Feklushkin <denis.feklushkin@gmail.com>
Дата:
РСÑд, 07/11/2012 в 11:48 -0500, Tom Lane пиÑеÑ: > Denis Feklushkin writes: > > in 9.2.0: > > PQsendQueryParams() with multiple command statement (like "select 123; > > select 456") unexpectedly causes error: > > > "cannot insert multiple commands into a prepared statement." > > This is not a bug, it's intentional (and documented) behavior. Advise as I can override this? I am need a simple form of overlapped processing, as in manual: "the client can be handling the results of one command while the server is still working on later queries in the same command string."