Re: Any changes in Java and PGSQL 9.4?

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Any changes in Java and PGSQL 9.4?
Date: 2015-01-18 19:25:48
Message-ID: m9h1br$vs0$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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 resultset using 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bjørn T Johansen 2015-01-18 19:26:44 Re: Any changes in Java and PGSQL 9.4?
Previous Message Bjørn T Johansen 2015-01-18 19:20:35 Any changes in Java and PGSQL 9.4?