Re: unnecessary exception patch

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: unnecessary exception patch
Дата
Msg-id Pine.BSO.4.64.0801140526020.1408@leary.csoft.net
обсуждение исходный текст
Ответ на unnecessary exception patch  (sulfinu@gmail.com)
Список 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 по дате отправления:

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: Is it safe to use 8.0.14 server and 7.4 driver ?
Следующее
От: Toni Urpí
Дата:
Сообщение: setQueryTimeout