Re: How to retry when connection has been closed? - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: How to retry when connection has been closed?
Date
Msg-id 4A76113F.8020101@opencloud.com
Whole thread Raw
In response to How to retry when connection has been closed?  (Herouth Maoz <herouth@unicell.co.il>)
List 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 by date:

Previous
From: Herouth Maoz
Date:
Subject: How to retry when connection has been closed?
Next
From: Kris Jurka
Date:
Subject: Re: Datatype of domains not reported correctly.