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 C3ED9D1B19F for ; Wed, 7 Jul 2004 16:53:46 -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 03700-01 for ; Wed, 7 Jul 2004 19:53:39 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 8FFDCD1B195 for ; Wed, 7 Jul 2004 16:53:36 -0300 (ADT) Received: (qmail 2012 invoked from network); 7 Jul 2004 19:53:35 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 7 Jul 2004 19:53:35 -0000 Subject: Re: getXXX methods From: Dave Cramer Reply-To: pg@fastcrypt.com To: Kris Jurka Cc: Oliver Jowett , "pgsql-jdbc@postgresql.org" In-Reply-To: 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> <40EB5683.90301@opencloud.com> Content-Type: text/plain Organization: Cramer Consulting Message-Id: <1089230030.1506.226.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Wed, 07 Jul 2004 15:53:50 -0400 Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/52 X-Sequence-Number: 10436 Ok, it appears (at least from my understanding) that Kris is correct here. I had a look at the sql2003 proposed spec (ISO/IEC 9075-2:2003(E)), and it states: A number is assignable only to sites of numeric type. If an assignment of some number would result in a loss of it's most significant digit, an exception conditions is raised. If least significant digits are lost, implementation defined rounding, or truncation occurs, with no exception condition being raised. Dave On Tue, 2004-07-06 at 21:58, Kris Jurka wrote: > On Wed, 7 Jul 2004, Oliver Jowett wrote: > > > > 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! > > No, this is different. Exceptions are supposed to prevent you from > checking the return code on every function call, which the warning API > seems to want to you to do. > > Kris Jurka > > > > !DSPAM:40eb58bf196361343028809! > > -- Dave Cramer 519 939 0336 ICQ # 14675561