[PATCH] setTimestamp(int, Timestamp) fails on null timestamp

Поиск
Список
Период
Сортировка
От Dejan Vucinic
Тема [PATCH] setTimestamp(int, Timestamp) fails on null timestamp
Дата
Msg-id F1032WEnKS7vzxgLNnQ000105e9@hotmail.com
обсуждение исходный текст
Ответы RE: [PATCH] setTimestamp(int, Timestamp) fails on null timestamp
Список pgsql-jdbc
Greetings,

The 7.1.2 JDBC driver has a bug in setTimestamp(int, Timestamp), it
throws a NullPointerException if the Timestamp is set to null.
Looking at the code, this seems to be the case for the other form
of setTimestamp as well, in both jdbc1/PreparedStatement.java and
jdbc2/PreparedStatement.java.  Please insert something like this at
the very beginning of the four methods:

          if (null == x) {
            set(parameterIndex, "NULL");
            return;
          }

Thanks,

--dv

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: RE: jdbc and unix signals
Следующее
От: Tom Lane
Дата:
Сообщение: Re: can't write a BLOB, 7.1.2