Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id AFD21633A06 for ; Mon, 1 Feb 2010 16:02:09 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 47564-02 for ; Mon, 1 Feb 2010 20:01:59 +0000 (UTC) X-Greylist: delayed 01:07:59.746611 by SQLgrey-1.7.6 Received: from mail-ww0-f46.google.com (mail-ww0-f46.google.com [74.125.82.46]) by mail.postgresql.org (Postfix) with ESMTP id F12ED6327BC for ; Mon, 1 Feb 2010 16:01:58 -0400 (AST) Received: by wwi18 with SMTP id 18so540371wwi.19 for ; Mon, 01 Feb 2010 12:01:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.88.85 with SMTP id z63mr3337382wee.129.1265050437220; Mon, 01 Feb 2010 10:53:57 -0800 (PST) From: Nedim Cholich Date: Mon, 1 Feb 2010 13:53:37 -0500 Message-ID: <2f8a6c901002011053w4ec6425bodb502c67d4e2b2dc@mail.gmail.com> Subject: Jdbc4ResultSet getClob and getBlob are calling getLong internally To: pgsql-jdbc@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.443 tagged_above=-10 required=5 tests=BAYES_00=-2.599, SUBJECT_FUZZY_TION=0.156 X-Spam-Level: X-Archive-Number: 201002/1 X-Sequence-Number: 20288 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?