Re: [JDBC] unnecessary exception patch
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
|