X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C0B83D1B1B3 for ; Tue, 6 Jul 2004 22:10:35 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 78156-01 for ; Wed, 7 Jul 2004 01:10:36 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 6A420D1B1A9 for ; Tue, 6 Jul 2004 22:10:31 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1Bi0xE-0004xO-00; Wed, 07 Jul 2004 13:10:32 +1200 Message-ID: <40EB4D85.6080100@opencloud.com> Date: Wed, 07 Jul 2004 13:10:29 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pg@fastcrypt.com Cc: Kris Jurka , "pgsql-jdbc@postgresql.org" Subject: Re: getXXX methods References: <1088795907.1536.118.camel@localhost.localdomain> <1089145387.1506.65.camel@localhost.localdomain> <1089154614.1508.70.camel@localhost.localdomain> <40EB385F.9030704@opencloud.com> <1089162095.1508.173.camel@localhost.localdomain> In-Reply-To: <1089162095.1508.173.camel@localhost.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200407/45 X-Sequence-Number: 10429 Dave Cramer wrote: > Oliver, > > Well as Kris pointed out the javadoc is next to useless here. I see no > harm in truncating the data, my assumption being that the user knows > what they are doing. If the application really wants silent truncation without warning can't they do it directly in the query? I think generating DataTruncation (nb: as a *warning*, not throwing an exception) is still a good idea. Then at least the application gets some sort of notification. Have you read the DataTruncation javadoc & spec section? -O