Re: libpq: multiple commands within single query - Mailing list pgsql-general

From Tom Lane
Subject Re: libpq: multiple commands within single query
Date
Msg-id 10792.1295366383@sss.pgh.pa.us
Whole thread Raw
In response to Re: libpq: multiple commands within single query  (Вячеслав Блинников <slavmfm@gmail.com>)
List pgsql-general
=?KOI8-R?B?99HexdPMwdcg4szJzs7Jy8/X?= <slavmfm@gmail.com> writes:
> Yeah - that is how I do (PGgetResult function returns results until it will
> return "NULL" pointer which means that all data for whole "PGsendQuery" was
> returned). But what does it mean when query which contain 3 "SELECT"
> commands returns just one result (second "PGgetResult()" already returns
> null pointer)?

Most likely, the command failed ... have you tried inspecting the
PGresult to see what status it's reporting?

            regards, tom lane

pgsql-general by date:

Previous
From: Вячеслав Блинников
Date:
Subject: Re: libpq: multiple commands within single query
Next
From: Daniel Popowich
Date:
Subject: Re: plpythonu memory leak