JDBC setObject(n,obj) throws exception when obj is null

Поиск
Список
Период
Сортировка
От pgsql-bugs@postgresql.org
Тема JDBC setObject(n,obj) throws exception when obj is null
Дата
Msg-id 200104171140.f3HBe2x27289@hub.org
обсуждение исходный текст
Список pgsql-bugs
Dave Cramer (Dave@micro-automation.net) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
JDBC setObject(n,obj) throws exception when obj is null

Long Description
The jdbc call setObject(n,obj) does not set the column to null if the object is null and the object is of type Object.

One easy solution to this problem is to simply check for null at the top of the setObject method, and call
setNull(n,Types.Other)



Sample Code


No file was uploaded with this report

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

Предыдущее
От: Calvin Dodge
Дата:
Сообщение: p.s. (Re: another possible ODBC error)
Следующее
От: Peter T Mount
Дата:
Сообщение: Re: Major Memory Leak in PostgreSQL JDBC Driver