db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Pendleton <bpendle...@amberpoint.com>
Subject Re: problem with cast (null as int)
Date Tue, 04 Aug 2009 14:18:28 GMT
Eranda Sooriyabandara wrote:
> when execution time it gave the NullPointerException. We cannot directly 
> cast the null into Integer ((INTEGER)rs.getObject(i)). But we can do it 
> by give the data type as integer, pSt.setObject(i, rs.getObject(i), Types.INTEGER);

> Am I correct in understanding?

Yes, exactly so!



View raw message