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.
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
РСÑд, 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."
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера