pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martin Zeigler <mzeigler@home.com>
To: pgsql-interfaces@postgresql.org
Subject: Null values with the JDBC driver
Date: Sun, 3 Dec 2000 09:21:32 -0500
Message-ID: <00120309253400.02112@maverick.zigsoft.com> (raw)

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



Message-ID: <00120309253400.02112@maverick.zigsoft.com>
Permalink:  ../00120309253400.02112@maverick.zigsoft.com/
Also on:    postgresql.org/message-id/00120309253400.02112@maverick.zigsoft.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: mzeigler@home.com
  Subject: Re: Null values with the JDBC driver
  In-Reply-To: <00120309253400.02112@maverick.zigsoft.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox