Re: catch SQLException, error code for Foeign key violation,
- From: Kris Jurka <books(at)ejurka(dot)com>
- To: "surabhi.ahuja" <surabhi(dot)ahuja(at)iiitb(dot)ac(dot)in>
- Cc: pgsql-general(at)postgresql(dot)org
- Subject: Re: catch SQLException, error code for Foeign key violation,
- Date: Wed, 19 Apr 2006 01:42:28 -0500 (EST)
- Message-id: <Pine(dot)BSO(dot)4(dot)63(dot)0604190141510(dot)14912(at)leary2(dot)csoft(dot)net>
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
Home |
Main Index |
Thread Index