pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nedim Cholich <nedim@cholich.com>
To: pgsql-jdbc@postgresql.org
Subject: Jdbc4ResultSet getClob and getBlob are calling getLong internally
Date: Mon, 1 Feb 2010 13:53:37 -0500
Message-ID: <2f8a6c901002011053w4ec6425bodb502c67d4e2b2dc@mail.gmail.com> (raw)

Server 8.4 on Ubuntu
Driver type 4 version 8.4-701

After getting 'org.postgresql.util.PSQLException: Bad value for type
long' I found these two methods in Jdbc4ResultSet:

    public java.sql.Clob getClob(int i) throws SQLException
    {
        checkResultSet(i);
        if (wasNullFlag)
            return null;

        return new Jdbc4Clob(connection, getLong(i));
    }

    public java.sql.Blob getBlob(int i) throws SQLException
    {
        checkResultSet(i);
        if (wasNullFlag)
            return null;

        return new Jdbc4Blob(connection, getLong(i));
    }

Calling getLong here has to be wrong?



view thread (6+ messages)  latest in thread

Message-ID: <2f8a6c901002011053w4ec6425bodb502c67d4e2b2dc@mail.gmail.com>
Permalink:  ../2f8a6c901002011053w4ec6425bodb502c67d4e2b2dc@mail.gmail.com/
Also on:    postgresql.org/message-id/2f8a6c901002011053w4ec6425bodb502c67d4e2b2dc@mail.gmail.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: nedim@cholich.com
  Subject: Re: Jdbc4ResultSet getClob and getBlob are calling getLong internally
  In-Reply-To: <2f8a6c901002011053w4ec6425bodb502c67d4e2b2dc@mail.gmail.com>
  References: <2f8a6c901002011053w4ec6425bodb502c67d4e2b2dc@mail.gmail.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