Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [JDBC] unnecessary exception patch

From: Kris Jurka <books(at)ejurka.com>
Date: Mon Jan 14 2008 - 05:27:38 EST

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

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend Received on Mon Jan 14 05:29:31 2008

This archive was generated by hypermail 2.1.8 : Wed Jun 18 2008 - 23:42:42 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library