pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedPQsendQueryParams() causes prepared statement error
3+ messages / 2 participants
[nested] [flat]
* PQsendQueryParams() causes prepared statement error
@ 2012-11-07 02:33 Denis Feklushkin <denis.feklushkin@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Denis Feklushkin @ 2012-11-07 02:33 UTC (permalink / raw)
To: pgsql-bugs
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.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: PQsendQueryParams() causes prepared statement error
@ 2012-11-07 16:48 Tom Lane <tgl@sss.pgh.pa.us>
parent: Denis Feklushkin <denis.feklushkin@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2012-11-07 16:48 UTC (permalink / raw)
To: Denis Feklushkin <denis.feklushkin@gmail.com>; +Cc: pgsql-bugs
Denis Feklushkin <denis.feklushkin@gmail.com> 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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: PQsendQueryParams() causes prepared statement error
@ 2012-11-07 17:04 Denis Feklushkin <denis.feklushkin@gmail.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: Denis Feklushkin @ 2012-11-07 17:04 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs
В Срд, 07/11/2012 в 11:48 -0500, Tom Lane пишет:
> Denis Feklushkin <denis.feklushkin@gmail.com> 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."
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2012-11-07 17:04 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-11-07 02:33 PQsendQueryParams() causes prepared statement error Denis Feklushkin <denis.feklushkin@gmail.com>
2012-11-07 16:48 ` Tom Lane <tgl@sss.pgh.pa.us>
2012-11-07 17:04 ` Denis Feklushkin <denis.feklushkin@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox