Re: setObject on PGInterval throws "Unknown Type null"

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: setObject on PGInterval throws "Unknown Type null"
Дата
Msg-id 41F80972.2010308@opencloud.com
обсуждение исходный текст
Ответ на Re: setObject on PGInterval throws "Unknown Type null"  ("Jean-Pierre Pelletier" <pelletier_32@sympatico.ca>)
Список pgsql-jdbc
Jean-Pierre Pelletier wrote:

> The advantage of overloaded versions of setObject over new method names
> was to
> provide backward compatibility for setObject(i,x)
> i.e. no need to recode setObject(i,x) to setObject(i,x,Types.someType)
> because setObject(i,x) is now broken with null objects.

How is this backwards-compatible? Without recompilation, adding extra
methods doesn't do anything. With recompilation, you need to add a cast
to PGStatement to see the new methods. If you're changing the code
anyway, why not just change to the typed setObject() variant?

-O

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

Предыдущее
От: "Jean-Pierre Pelletier"
Дата:
Сообщение: Re: setObject on PGInterval throws "Unknown Type null"
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Documentation for jdbc escapes