Re: Any changes in Java and PGSQL 9.4?

Поиск
Список
Период
Сортировка
От Bjørn T Johansen
Тема Re: Any changes in Java and PGSQL 9.4?
Дата
Msg-id 20150118204704.7a100702@pennywise2.havleik.net
обсуждение исходный текст
Ответ на Re: Any changes in Java and PGSQL 9.4?  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-general
On Sun, 18 Jan 2015 20:25:48 +0100
Thomas Kellerer <spam_eater@gmx.net> wrote:

> Bjørn T Johansen wrote on 18.01.2015 20:20:
> > Just noticed that a column field of type bigint containing a null, becomes a 0 when retrieving it from the
resultsetusing JDBC. 
> > If I run the same application against my old 9.3 database, the value retrieved is a null....
> >
> >
>
> You need to show us some code.
>
> getInt() or getLong() can never return null because primitives can't be null in Java.
>
>
>
>
>
>

Yes, you are absolutely correct.. I was fooled by the capital L in getLong but I see that it returns long..
I guess I just hadn't triggered this problem before...


BTJ


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

Предыдущее
От: Bjørn T Johansen
Дата:
Сообщение: Re: Any changes in Java and PGSQL 9.4?
Следующее
От: James Sewell
Дата:
Сообщение: Partitioning