Null values with the JDBC driver - Mailing list pgsql-interfaces

From Martin Zeigler
Subject Null values with the JDBC driver
Date
Msg-id 00120309253400.02112@maverick.zigsoft.com
Whole thread Raw
List pgsql-interfaces
When you call "getObject()" with the JDBC driver on a ResultSet for an Integer
field and the value stored in the database is null, shouldn't the driver also
return a null instead of Integer(0) ?

If I had called "getInt()" on it I would expect that kind of behavior.  But
when I called getObject, I expected null values.  Is this the correct behavior?

Martin Zeigler


pgsql-interfaces by date:

Previous
From: Cedar Cox
Date:
Subject: Re: JDBC and long TEXT fields
Next
From: Ingo Luetkebohle
Date:
Subject: jdbc: getBinaryStream blocks on second call