Re: Problem with API (libpq) - detailed error codes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem with API (libpq) - detailed error codes
Дата
Msg-id 9557.1075594681@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problem with API (libpq) - detailed error codes  (Adam.Bukla@interia.pl (Adam Bukla))
Список pgsql-general
Adam.Bukla@interia.pl (Adam Bukla) writes:
> If function PQexec fails, I can get error code using PQresultStatus.
> But returned codes are very generally and do not specify what really
> happen. I can get detailed error description using PQerrorMessage
> function, but I need detailed error code (number).

Beginning in Postgres 7.4, there are standard SQLSTATE error codes
available (see PQresultErrorField), but older releases do not have them.

            regards, tom lane

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

Предыдущее
От: "Manuel Tejada"
Дата:
Сообщение: Re: PostgreSQL 7.4.1 and pgdb.py
Следующее
От: "Ben"
Дата:
Сообщение: Very slow query - why?