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 A28285290D for ; Tue, 5 Jul 2005 23:30:44 -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 65847-06 for ; Wed, 6 Jul 2005 02:30: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 B1945528A6 for ; Tue, 5 Jul 2005 23:30:37 -0300 (ADT) Received: (qmail 397 invoked from network); 6 Jul 2005 02:28:39 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (64.7.143.116) by net2.micro-automation.com with SMTP; 6 Jul 2005 02:28:39 -0000 In-Reply-To: <42CB122B.6070708@opencloud.com> References: <42CB122B.6070708@opencloud.com> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <5FCCEEC4-FDF9-4299-8551-B2F9D11998B6@fastcrypt.com> Cc: List Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: JDBCCTS issues Date: Tue, 5 Jul 2005 22:30:40 -0400 To: Oliver Jowett X-Mailer: Apple Mail (2.730) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.017 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/31 X-Sequence-Number: 13179 On 5-Jul-05, at 7:05 PM, Oliver Jowett wrote: > Dave Cramer wrote: > >> Does anyone know what the spec says if a parameter is registered and >> the underlying type is not the same as the registered type? >> >> for instance registerOutParameter( n, Types.Real ) where the >> underlying >> type is float8 >> >> In general should we be attempting to convert to the case requested ? >> > > Ok I stared at the spec a bit.. > > It seems like the type you specify when registering is the type you > intend to retrieve via a get...() method, and the spec seems to imply > that the driver should cast the parameter to that type.. but it's > vague > as usual. > > The datatype conversion tables appendix does not talk about datatype > conversion on CallableStatement.get...() at all (though it does talk > about conversion in ResultSet). > > So I suppose we should probably accept it and do a cast to the > appropriate type on return. I don't think anyone will mind if we make it easier for them. > > Am I right in thinking that OUT parameter types aren't considered part > of a function's signature and don't contribute to overloading at all? At the moment that is true, yes > > -O > >