Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id F3BB8632867 for ; Mon, 16 Aug 2010 11:53:14 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 22425-10 for ; Mon, 16 Aug 2010 14:53:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.postgresql.org (Postfix) with ESMTP id EF9026327A7 for ; Mon, 16 Aug 2010 11:53:07 -0300 (ADT) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ol13h-0005WT-43 for pgsql-jdbc@postgresql.org; Mon, 16 Aug 2010 16:53:05 +0200 Received: from ppp-93-104-161-46.dynamic.mnet-online.de ([93.104.161.46]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Aug 2010 16:53:05 +0200 Received: from spam_eater by ppp-93-104-161-46.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Aug 2010 16:53:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: TEXT columns should indentify as java.sql.Types.CLOB Date: Mon, 16 Aug 2010 16:52:58 +0200 Lines: 19 Message-ID: References: <4C691E81.903@opencloud.com> <4C6904C00200002500034672@gw.wicourts.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ppp-93-104-161-46.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: <4C6904C00200002500034672@gw.wicourts.gov> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/54 X-Sequence-Number: 20857 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