Re: libpq: how to retrieve query result? - Mailing list pgsql-general

From Fredric Fredricson
Subject Re: libpq: how to retrieve query result?
Date
Msg-id 4D34AA31.5000908@bonetmail.com
Whole thread Raw
In response to libpq: how to retrieve query result?  (Вячеслав Блинников <slavmfm@gmail.com>)
List pgsql-general
On 01/17/2011 09:00 PM, Вячеслав Блинников wrote:
I retrieve asynchronous queries results using PQgetResult() which returns NULL not in case of some error, but when results end - so there is no way to know if database responded successfully or there happened some error?
For example, error can happen when column names are miswritten.
I'm no authority on this but my understanding is that it if PQsendQuery returns "OK" the query was successful (for some definition of "successful").

/Fredric
Attachment

pgsql-general by date:

Previous
From: Jerry LeVan
Date:
Subject: Re: iPad and Postgresql...
Next
From: Dmitriy Igrishin
Date:
Subject: Re: libpq: how to retrieve query result?