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

From Dmitriy Igrishin
Subject Re: libpq: how to retrieve query result?
Date
Msg-id AANLkTi=ROcTuH+LbOFAy7Zb3UXdaWdSWSPx+r-WWMFyG@mail.gmail.com
Whole thread Raw
In response to libpq: how to retrieve query result?  (Вячеслав Блинников <slavmfm@gmail.com>)
List pgsql-general
Hey

17 января 2011 г. 23:00 пользователь Вячеслав Блинников <slavmfm@gmail.com> написал:
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.
Use PQresultStatus. See also PQresultErrorField.


--
// Dmitriy.


pgsql-general by date:

Previous
From: Fredric Fredricson
Date:
Subject: Re: libpq: how to retrieve query result?
Next
From: Adrian Klaver
Date:
Subject: Re: Install PostgreSQL as part of a desktop application, but how to coop with existing installations?