Search Postgresql Archives

Re: catch SQLException, error code for Foeign key violation,

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

 





On Wed, 19 Apr 2006, surabhi.ahuja wrote:

what is the way to capture such exception in Cpp,
are there any examples available for this?

right now in cpp, i do this

rStatus = PQresultStatus(result);

but what is the specific error code, how to get that,


See PQresultErrorField

http://www.postgresql.org/docs/8.1/static/libpq-exec.html

Kris Jurka


[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