Re: Removing our datasource/pooling implementation.

From: Kris Jurka <books(at)ejurka(dot)com>
To: Oliver Jowett <oliver(at)opencloud(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Removing our datasource/pooling implementation.
Date: 2005-01-12 00:03:56
Message-ID: Pine.BSO.4.56.0501111855590.32720@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Wed, 12 Jan 2005, Oliver Jowett wrote:

> Looking at the code, it looks like fireConnectionFatalError() isn't
> being called in the normal execution (non-setup) path at all.

Yes, this is the root of the problem.

> I will look at fixing this. Probably the best way to do it is monitor
> the SQLState of thrown exceptions in the InvocationHandler and know
> about which states are fatal (e.g. connection failure, driver internal
> errors).
>

That could work, although coming up with the list of fatal states might be
tricky. I've never paid much attention to the sql states that the driver
assigns itself, this might be the time to change that and remove the
PSQLException constructor that doesn't take a PSQLState argument.

Kris Jurka

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Felipe 2005-01-12 02:05:45 unsubscribe
Previous Message Oliver Jowett 2005-01-11 23:44:04 Re: Removing our datasource/pooling implementation.