pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gunnar R|nning <gunnar@candleweb.no>
To: pgsql-interfaces@postgresql.org
Subject: JDBC 7.0 - ResultSet.getObject() bug
Date: 23 May 2000 15:48:16 +0200
Message-ID: <x666s5s7hb.fsf@thor.candleweb.no> (raw)

Hello, 

I just discovered what I think must be regarded as bug in the JDBC driver
shipped with the 7.0 release. 

The JDBC spec states that ResultSet.getObject() should return "null" if the
there is an SQL NULL value in the column. The JDBC driver for postgres does
however in this case return an object, eg. in the case of an int value it
returns an Integer object with the value of "0". 



view thread (2+ messages)  latest in thread

Message-ID: <x666s5s7hb.fsf@thor.candleweb.no>
Permalink:  ../x666s5s7hb.fsf@thor.candleweb.no/
Also on:    postgresql.org/message-id/x666s5s7hb.fsf@thor.candleweb.no

 · 

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: gunnar@candleweb.no
  Subject: Re: JDBC 7.0 - ResultSet.getObject() bug
  In-Reply-To: <x666s5s7hb.fsf@thor.candleweb.no>

* 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