Skip site navigation (1) Skip section navigation (2)

Re: unnecessary exception patch

From: Kris Jurka <books(at)ejurka(dot)com>
To: sulfinu(at)gmail(dot)com
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: unnecessary exception patch
Date: 2008-01-14 10:27:38
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc

On Fri, 11 Jan 2008, sulfinu(at)gmail(dot)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

In response to

pgsql-jdbc by date

Next:From: Toni UrpĂ­Date: 2008-01-14 14:40:08
Subject: setQueryTimeout
Previous:From: Kris JurkaDate: 2008-01-14 10:25:35
Subject: Re: Is it safe to use 8.0.14 server and 7.4 driver ?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group