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: TEXT columns should indentify as  java.sql.Types.CLOB
Date: Mon, 16 Aug 2010 16:52:58 +0200
Message-ID: <i4bjc9$f41$1@dough.gmane.org> (raw)
In-Reply-To: <4C6904C00200002500034672@gw.wicourts.gov>
References: <E6A9CAA76548CB4EB02D2E3B174DD3B155381F0DF3@ink.sad.syncrontech.com>
	<i4b0ep$a39$1@dough.gmane.org>
	<4C691E81.903@opencloud.com>
	<i4bfi5$k4k$1@dough.gmane.org>
	<4C6904C00200002500034672@gw.wicourts.gov>

Kevin Grittner wrote on 16.08.2010 16:28:
> I'm with Oliver.  I've developed a lot of highly portable code, and
> *my* assumption would be that a column categorized as Types.CLOB
> would support getClob() / setClob().  That it might or might not
> support getString() seems pretty irrelevant to the issue.
>
> Your argument seems to be that if something behaves like character
> varying without the length limitations of some other database
> products on such types, it should be considered CLOB.  I think it
> should be related to whether the CLOB access methods are supported.

You have a point here.

So _if_ the driver were to return Types.CLOB it would need to implement getClob()/setClob() as well.
I still think it would be more consitent, to flag those columns as CLOB but I underst that it would require a lot more work than simply changing the datatype return value.


Regards
Thomas




view thread (14+ messages)  latest in thread

Message-ID: <i4bjc9$f41$1@dough.gmane.org>
Permalink:  ../i4bjc9$f41$1@dough.gmane.org/
Also on:    postgresql.org/message-id/i4bjc9$f41$1@dough.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: TEXT columns should indentify as  java.sql.Types.CLOB
  In-Reply-To: <i4bjc9$f41$1@dough.gmane.org>
  References: <E6A9CAA76548CB4EB02D2E3B174DD3B155381F0DF3@ink.sad.syncrontech.com> <i4b0ep$a39$1@dough.gmane.org> <4C691E81.903@opencloud.com> <i4bfi5$k4k$1@dough.gmane.org> <4C6904C00200002500034672@gw.wicourts.gov> <i4bjc9$f41$1@dough.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