pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedFwd: errors with getObject() with JDBC driver
2+ messages / 2 participants
[nested] [flat]
* Fwd: errors with getObject() with JDBC driver
@ 2000-11-29 02:11 Martin Zeigler <mzeigler@home.com>
0 siblings, 0 replies; 2+ messages in thread
From: Martin Zeigler @ 2000-11-29 02:11 UTC (permalink / raw)
To: pgsql-interfaces
I am using version 7.0.2 of postgres on Redhat Linux 6.1. I am also using
Sun's Java 1.3 JVM, using the java2 JDBC driver from postgres. I have a table
containing several fields of "integer". I have one row in the table where
these integer are null. When I retrieve this row's values with my driver by
calling "getObject()" on the resultSet, it returns an Integer object containing
0. The value is not 0, it should be null. I verified the fields are null in
the database by issuing a query by hand.
Am I doing something wrong, or is this a bug with the driver?
Thanks,
Martin Zeigler
^ permalink raw reply [nested|flat] 2+ messages in thread
* RE: Fwd: errors with getObject() with JDBC driver
@ 2000-12-05 15:08 Peter Mount <petermount@maidstone.gov.uk>
0 siblings, 0 replies; 2+ messages in thread
From: Peter Mount @ 2000-12-05 15:08 UTC (permalink / raw)
To: 'Martin Zeigler' <mzeigler@home.com>; pgsql-interfaces
This should be fixed. I can't remember if it got into 7.0.3 but the current
source does include a check, and it should be returning null.
Peter
--
Peter Mount
Enterprise Support Officer, Maidstone Borough Council
Email: petermount@maidstone.gov.uk
WWW: http://www.maidstone.gov.uk
All views expressed within this email are not the views of Maidstone Borough
Council
> -----Original Message-----
> From: Martin Zeigler [mailto:mzeigler@home.com]
> Sent: Wednesday, November 29, 2000 2:12 AM
> To: pgsql-interfaces@postgresql.org
> Subject: [INTERFACES] Fwd: errors with getObject() with JDBC driver
>
>
>
> I am using version 7.0.2 of postgres on Redhat Linux 6.1. I
> am also using
> Sun's Java 1.3 JVM, using the java2 JDBC driver from
> postgres. I have a table
> containing several fields of "integer". I have one row in
> the table where
> these integer are null. When I retrieve this row's values
> with my driver by
> calling "getObject()" on the resultSet, it returns an Integer
> object containing
> 0. The value is not 0, it should be null. I verified the
> fields are null in
> the database by issuing a query by hand.
>
> Am I doing something wrong, or is this a bug with the driver?
>
> Thanks,
> Martin Zeigler
>
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2000-12-05 15:08 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-11-29 02:11 Fwd: errors with getObject() with JDBC driver Martin Zeigler <mzeigler@home.com>
2000-12-05 15:08 RE: Fwd: errors with getObject() with JDBC driver Peter Mount <petermount@maidstone.gov.uk>
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