Re: libpq: multiple commands within single query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Вячеслав Блинников <slavmfm(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: libpq: multiple commands within single query
Date: 2011-01-18 15:59:43
Message-ID: 10792.1295366383@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?KOI8-R?B?99HexdPMwdcg4szJzs7Jy8/X?= <slavmfm(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Daniel Popowich 2011-01-18 16:50:10 Re: plpythonu memory leak
Previous Message Вячеслав Блинников 2011-01-18 15:48:21 Re: libpq: multiple commands within single query