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 09B4CD1B23F for ; Tue, 6 Jul 2004 22:48:56 -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 90585-06 for ; Wed, 7 Jul 2004 01:48:57 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 0828FD1B1F8 for ; Tue, 6 Jul 2004 22:48:52 -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 1Bi1YL-0005bp-00; Wed, 07 Jul 2004 13:48:53 +1200 Message-ID: <40EB5683.90301@opencloud.com> Date: Wed, 07 Jul 2004 13:48:51 +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: Kris Jurka Cc: pg@fastcrypt.com, "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> <40EB4D85.6080100@opencloud.com> In-Reply-To: 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/48 X-Sequence-Number: 10432 Kris Jurka wrote: > The > DataTruncation API is organized around byte sizes and just doesn't seem > right for numeric data. There is support throughout that API for "unknown sizes" which seems appropriate when you're not dealing with explicitly-sized types. And even types such as varchar don't map directly to bytes anyway.. > Even if the spec does imply that a warning > shuold be issued (which is not clear to me), I can't imagine why > anyone would want this. If I want truncation I'll do it myself, otherwise > I want any error to immediately raise a red flag and put the brakes on > processing. I tend to agree -- but Dave evidently has a use for it, in which case truncation+warning seems a lesser evil than silent truncation. > How many people really check for warnings anyway? I hate this argument. If we don't generate any warnings, of course no one will check for them! -O