Re: How to retry when connection has been closed?

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: How to retry when connection has been closed?
Дата
Msg-id 4A76113F.8020101@opencloud.com
обсуждение исходный текст
Ответ на How to retry when connection has been closed?  (Herouth Maoz <herouth@unicell.co.il>)
Список pgsql-jdbc
Herouth Maoz wrote:

> Is there a more elegant way to find out whether the connection has been
> dropped from within the catch clause?

Test the SQLState of the thrown SQLException. See
http://www.postgresql.org/docs/8.4/static/errcodes-appendix.html

-O

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

Предыдущее
От: Herouth Maoz
Дата:
Сообщение: How to retry when connection has been closed?
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Datatype of domains not reported correctly.