pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: ResultSet.getClob() causing problems when used with JPA's @Lob
Date: Wed, 20 Jul 2016 15:40:53 +0200
Message-ID: <nmnv15$1dl$1@ger.gmane.org> (raw)
In-Reply-To: <CAB=Je-FBJgyP5xbpcBAVBc84k2YW82-T2zrYFaD-kBhoN1dFwA@mail.gmail.com>
References: <201102070001.22259.andreak@officenet.no>
	<nmnoj4$ouq$1@ger.gmane.org>
	<CAB=Je-FBJgyP5xbpcBAVBc84k2YW82-T2zrYFaD-kBhoN1dFwA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

Vladimir Sitnikov schrieb am 20.07.2016 um 14:37:
>>Is there anything new here?
>>This still doesn't work with 9.4.1208
> 
> Nothing new here yet.
> 
>>So we are caught between a rock and a hard place
> 
> I feel your pain.
> 
> Technically the problem is pgjdbc does not have "String -> Clob" conversion yet.
> 
>>Are there any plans for this?
> 
> I've not heard of those.
> 
>>If not, is this something that would be accepted as a patch?
> 
> I think so.
> It should be possible to check the result column type and create java.sql.Clob instance that would just work off the resulting string.

I don't think checking the column type is necessary (at least not for me).
If this option is enabled, then all calls to getClob() are simply "re-routed" to getString().





-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (36+ messages)  latest in thread

Message-ID: <nmnv15$1dl$1@ger.gmane.org>
Permalink:  ../nmnv15$1dl$1@ger.gmane.org/
Also on:    postgresql.org/message-id/nmnv15$1dl$1@ger.gmane.org

 · 

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: spam_eater@gmx.net
  Subject: Re: ResultSet.getClob() causing problems when used with JPA's @Lob
  In-Reply-To: <nmnv15$1dl$1@ger.gmane.org>
  References: <201102070001.22259.andreak@officenet.no> <nmnoj4$ouq$1@ger.gmane.org> <CAB=Je-FBJgyP5xbpcBAVBc84k2YW82-T2zrYFaD-kBhoN1dFwA@mail.gmail.com> <nmnv15$1dl$1@ger.gmane.org>

* 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