View Single Post

   
  #2 (permalink)  
Old 04-16-2008, 12:59 AM
Kris Jurka
 
Posts: n/a
Default Re: 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

Reply With Quote