Re: problem with PSQLException/PSQLState

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: problem with PSQLException/PSQLState
Дата
Msg-id Pine.LNX.4.33.0312091644430.3369-100000@leary.csoft.net
обсуждение исходный текст
Ответ на problem with PSQLException/PSQLState  (Jason Briggs <jason@lateralnz.com>)
Ответы Re: problem with PSQLException/PSQLState
Список pgsql-jdbc

On Wed, 3 Dec 2003, Jason Briggs wrote:

> Just discovered a possible issue with the SQLException thrown by the 7.4
> beta3 jdbc driver.
>
> PSQLException used to contain only a message, but now also has a ref to
> org.postgresql.util.PSQLState.  PSQLState isn't serializable and because
> a SQLException is supposed to be serializable, this causes a problem in
> situations where you might want to propogate your exceptions across the
> wire (i.e. app server to client).
>
> The problem is fixed if you change PSQLState to implement Serializable,
> as follows:

Here's a patch to add the change indicated and more importantly a test
case so this won't happen again.

Kris Jurka



В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: SET AUTOCOMMIT TO OFF is no longer supported
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: problem with PSQLException/PSQLState