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

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: catch SQLException, error code for Foeign key violation,
Дата
Msg-id Pine.BSO.4.63.0604190141510.14912@leary2.csoft.net
обсуждение исходный текст
Ответ на Re: catch SQLException, error code for Foeign key violation,  ("surabhi.ahuja" <surabhi.ahuja@iiitb.ac.in>)
Список pgsql-general

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

В списке pgsql-general по дате отправления:

Предыдущее
От: Achilleus Mantzios
Дата:
Сообщение: Re: Thoughts on a Isolation/Security problem
Следующее
От: Brendan Duddridge
Дата:
Сообщение: page is uninitialized?