Re: setUseServerPrepare & typecasts

Поиск
Список
Период
Сортировка
От Scott Lamb
Тема Re: setUseServerPrepare & typecasts
Дата
Msg-id 3DD2F966.7080000@slamb.org
обсуждение исходный текст
Ответ на Re: setUseServerPrepare & typecasts  (Aaron Mulder <ammulder@alumni.princeton.edu>)
Список pgsql-jdbc
Aaron Mulder wrote:
> On Wed, 13 Nov 2002, Barry Lind wrote:
>
>>Scott,
>>
>>That makes sense because null takes a different code path than a real
>>value.  Thanks for the test case.  I will look into this.
>
>
>     But I don't think you're supposed to use setObject for a null
> value.  Instead, try
>
> setNull(1, Types.INTEGER)

Hmm. Yeah, I guess the API docs don't really describe what setObject is
supposed to do on null. But setNull(1, Types.INTEGER) seems to have the
same problem.

Thanks,
Scott


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

Предыдущее
От: Michael Ansley
Дата:
Сообщение: Re: JDBC3 and DataSource
Следующее
От: Scott Lamb
Дата:
Сообщение: Re: setUseServerPrepare & typecasts