Re: null to zero? - Mailing list pgsql-jdbc

From Joseph Shraibman
Subject Re: null to zero?
Date
Msg-id 3AD3A374.3E44FC0B@selectacast.net
Whole thread Raw
In response to RE: null to zero?  ("chris markiewicz" <cmarkiew@commnav.com>)
List pgsql-jdbc
That is correct.  This behavior is supposed to go away in 7.1

chris markiewicz wrote:
>
> hello.
>
> it seems that a null value in an integer (int4) column gets converted to
> zero at some point...is this accurate?  i look in the db and see null
> (queried using IS NULL to make sure), but i call an rs.getObject(colName)
> and get a java.lang.Integer with a value of zero...is this in jdbc or java?
> an Integer can BE null, but it cannot have a value of null...
>
> didn't see anything in the archives...
>


--
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio.  http://www.targabot.com

pgsql-jdbc by date:

Previous
From: Peter Mount
Date:
Subject: Re: [GENERAL] JDBC and Perl compiling problems w/ postgresql-7.1rc4
Next
From: "chris markiewicz"
Date:
Subject: RE: fastpath error?