pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Nedim Cholich <nedim@cholich.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Jdbc4ResultSet getClob and getBlob are calling getLong internally
Date: Mon, 01 Feb 2010 14:45:15 -0600
Message-ID: <4B66E8FB020000250002EDCC@gw.wicourts.gov> (raw)
In-Reply-To: <2f8a6c901002011239r40e7cdd4k66321122e12829a6@mail.gmail.com>
References: <2f8a6c901002011053w4ec6425bodb502c67d4e2b2dc@mail.gmail.com>
	<alpine.BSO.2.00.1002011512140.30625@leary.csoft.net>
	<2f8a6c901002011239r40e7cdd4k66321122e12829a6@mail.gmail.com>

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



view thread (6+ messages)

Message-ID: <4B66E8FB020000250002EDCC@gw.wicourts.gov>
Permalink:  ../4B66E8FB020000250002EDCC@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4B66E8FB020000250002EDCC@gw.wicourts.gov

 · 

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: Kevin.Grittner@wicourts.gov, nedim@cholich.com
  Subject: Re: Jdbc4ResultSet getClob and getBlob are calling getLong internally
  In-Reply-To: <4B66E8FB020000250002EDCC@gw.wicourts.gov>
  References: <2f8a6c901002011053w4ec6425bodb502c67d4e2b2dc@mail.gmail.com> <alpine.BSO.2.00.1002011512140.30625@leary.csoft.net> <2f8a6c901002011239r40e7cdd4k66321122e12829a6@mail.gmail.com> <4B66E8FB020000250002EDCC@gw.wicourts.gov>

* 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