Re: Minor Feature Request

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Minor Feature Request
Дата
Msg-id Pine.BSO.4.56.0504110006480.11110@leary.csoft.net
обсуждение исходный текст
Ответ на Re: Minor Feature Request  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc

On Wed, 6 Apr 2005, Oliver Jowett wrote:

> Perhaps we should put accessors for the various message parts on
> PSQLException, but leave the SQLException message as it currently is.
>

I've made ServerErrorMessage and its members available in the newly
released 8.1dev-400.

int errorPosition = 0;
try {
    ...
} catch (PSQLException e) {
    ServerErrorMessage m = e.getServerErrorMessage();
    if (m != null) {
        errorPosition = m.getPosition();
    }
}

Kris Jurka

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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: implementing asynchronous notifications
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Version 8.0-310 and PreparedStatement.getParameterMetaData()