Search Postgresql Archives

Re: libpq: how to retrieve query result?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey

17 ÑÐÐÐÑÑ 2011ÂÐ. 23:00 ÐÐÐÑÐÐÐÐÑÐÐÑ ÐÑÑÐÑÐÐÐ ÐÐÐÐÐÐÐÐÐ <slavmfm@xxxxxxxxx> ÐÐÐÐÑÐÐ:
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.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux