Re: libpq: how to retrieve query result?

From: Fredric Fredricson <Fredric(dot)Fredricson(at)bonetmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: libpq: how to retrieve query result?
Date: 2011-01-17 20:44:33
Message-ID: 4D34AA31.5000908@bonetmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
Fredric_Fredricson.vcf text/x-vcard 207 bytes

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dmitriy Igrishin 2011-01-17 20:51:28 Re: libpq: how to retrieve query result?
Previous Message Jerry LeVan 2011-01-17 20:37:43 Re: iPad and Postgresql...