Re: unnecessary exception patch - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: unnecessary exception patch
Date
Msg-id Pine.BSO.4.64.0801140526020.1408@leary.csoft.net
Whole thread Raw
In response to unnecessary exception patch  (sulfinu@gmail.com)
List pgsql-jdbc

On Fri, 11 Jan 2008, sulfinu@gmail.com wrote:

> this is a patch that avoids getting an undeserved PSQLException when
> setting the transaction isolation level on a connection:
>
> +       if (level == getTransactionIsolation())
> +               return;

Looks reasonable.  My only concern is that getTransactionIsolation does a
query to check the current isolation level, so we'd be penalizing any
callers who were deliberately changing the isoloation level.

Kris Jurka


pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Is it safe to use 8.0.14 server and 7.4 driver ?
Next
From: Toni Urpí
Date:
Subject: setQueryTimeout