Re: Handling SQL errors using libpq

Поиск
Список
Период
Сортировка
От Oliver Elphick
Тема Re: Handling SQL errors using libpq
Дата
Msg-id 1038406548.13294.91.camel@linda.lfix.co.uk
обсуждение исходный текст
Ответ на Handling SQL errors using libpq  (brennan@unix2.netaxs.com (William Brennan))
Список pgsql-interfaces
On Thu, 2002-11-21 at 18:37, William Brennan wrote:

> After a call to libpq, I would like to be able to recognize specific
> SQL errors which might occur, beyond the simple results obtainable
> via a call to PQresultStatus().  I want more precision.

You can get the actual error message with PQresultErrorMessage()

--
Oliver Elphick <olly@lfix.co.uk>
LFIX Limited

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

Предыдущее
От: "Jeff Urlwin"
Дата:
Сообщение: Re: :PgSQL: More Queestions
Следующее
От: David Wheeler
Дата:
Сообщение: Re: Interface update for 7.3