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 9A7EC5286A for ; Tue, 5 Jul 2005 20:05:24 -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 33502-07 for ; Tue, 5 Jul 2005 23:05:15 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 202185280C for ; Tue, 5 Jul 2005 20:05:13 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DpwTc-0008AP-47; Wed, 06 Jul 2005 11:05:16 +1200 Message-ID: <42CB122B.6070708@opencloud.com> Date: Wed, 06 Jul 2005 11:05:15 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Cramer Cc: List Subject: Re: JDBCCTS issues References: In-Reply-To: X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/30 X-Sequence-Number: 13178 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. 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? -O