X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8287ADBCD7 for ; Thu, 24 Nov 2005 17:07:01 -0400 (AST) 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 99855-08 for ; Thu, 24 Nov 2005 21:07:02 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id B0676DBCB5 for ; Thu, 24 Nov 2005 17:06:58 -0400 (AST) Received: (qmail 9579 invoked from network); 24 Nov 2005 21:07:00 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 24 Nov 2005 21:07:00 -0000 In-Reply-To: <438626EF.2080408@opencloud.com> References: <200511211718.26679.xinxincute@gmail.com> <1132616246.4154.10.camel@archimedes> <6F909ADC-23ED-40CF-A2B5-41DE61606A26@fastcrypt.com> <438548DB.8070407@opencloud.com> <73985A37-FA66-4E31-95C1-045F5AE31726@fastcrypt.com> <438626EF.2080408@opencloud.com> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <6022BCB2-7A1B-47A2-AC85-CDBB7CBD127C@fastcrypt.com> Cc: Mark Lewis , Kris Jurka , Tjioe Ai Xin , pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Can PostgreSQL do data type automated casting in Date: Thu, 24 Nov 2005 16:06:50 -0500 To: Oliver Jowett X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.008 required=5 tests=[AWL=0.008] X-Spam-Score: 0.008 X-Spam-Level: X-Archive-Number: 200511/196 X-Sequence-Number: 14294 You're on fairly shaky ground using "allowed by the spec" as justification. I'm thinking there are far more instances where people expect Oid unspecified to work than instances where they are going to change the type of the IN parameter in the same statement. Given that the default behaviour adheres to the spec, I'm not too worried about the case below failing under these specific circumstances. I presume it passes with the 8.0,8.1 behaviour. Dave On 24-Nov-05, at 3:47 PM, Oliver Jowett wrote: > Dave Cramer wrote: > >> Looking at the test case is this a realistic situation ? Would >> anyone really want to change the types of a parameter of a >> statement ? > > It's allowed by the spec as far as I can tell, so we need to > support it. > > -O >