bug in new StatementHandler

Поиск
Список
Период
Сортировка
От Mike Beachy
Тема bug in new StatementHandler
Дата
Msg-id 20021212184700.GC7805@marketdude.com
обсуждение исходный текст
Ответы Re: bug in new StatementHandler  (Aaron Mulder <ammulder@alumni.princeton.edu>)
Список pgsql-jdbc
There's a problem in how exceptions are handled (or rather, not handled)
in the new StatementHandler. If an SQLException is thrown in one of the
Statement methods, java.lang.reflect.Method catches it and throws it as
an InvocationTargetException. The handler needs to catch this and
extract the underlying exception.

A test for this problem and a patch are attached.

The same problem seems to exist for the ConnectionHandler, so I
implemented the code there as well. Aaron, if you could double check
what I've done that'd be cool.

Thanks.

Mike

Вложения

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

Предыдущее
От: "Alvaro Escobar"
Дата:
Сообщение: JDBC
Следующее
От: Aaron Mulder
Дата:
Сообщение: Re: bug in new StatementHandler