Re: Jdbc4ResultSet getClob and getBlob are calling getLong internally - Mailing list pgsql-jdbc

From Kevin Grittner
Subject Re: Jdbc4ResultSet getClob and getBlob are calling getLong internally
Date
Msg-id 4B66E8FB020000250002EDCC@gw.wicourts.gov
Whole thread Raw
In response to Re: Jdbc4ResultSet getClob and getBlob are calling getLong internally  (Nedim Cholich <nedim@cholich.com>)
List pgsql-jdbc
Nedim Cholich <nedim@cholich.com> wrote:

> Yes, it's a TEXT column and yes I'm calling
> rs.getClob(columnName);
>
> What am I suppose to call instead?

In PostgreSQL a text column is not a BLOB or CLOB.
Try rs.getString(columnName);

For BLOB behavior, see large objects:

http://www.postgresql.org/docs/8.4/interactive/largeobjects.html

-Kevin

pgsql-jdbc by date:

Previous
From: Nedim Cholich
Date:
Subject: Re: Jdbc4ResultSet getClob and getBlob are calling getLong internally
Next
From: Kris Jurka
Date:
Subject: Re: Jdbc4ResultSet getClob and getBlob are calling getLong internally