Search Postgresql Archives

Re: Any changes in Java and PGSQL 9.4?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 18 Jan 2015 20:25:48 +0100
Thomas Kellerer <spam_eater@xxxxxxx> 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 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.
> 
> 
> 
> 
> 
> 

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


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux