pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: JDBCCTS issues
Date: Tue, 5 Jul 2005 22:30:40 -0400
Message-ID: <5FCCEEC4-FDF9-4299-8551-B2F9D11998B6@fastcrypt.com> (raw)
In-Reply-To: <42CB122B.6070708@opencloud.com>
References: <F3AF9C8C-4460-4EA8-8A93-00D70B96899F@fastcrypt.com>
	<42CB122B.6070708@opencloud.com>


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
>
>




view thread (4+ messages)

Message-ID: <5FCCEEC4-FDF9-4299-8551-B2F9D11998B6@fastcrypt.com>
Permalink:  ../5FCCEEC4-FDF9-4299-8551-B2F9D11998B6@fastcrypt.com/
Also on:    postgresql.org/message-id/5FCCEEC4-FDF9-4299-8551-B2F9D11998B6@fastcrypt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pg@fastcrypt.com, oliver@opencloud.com
  Subject: Re: JDBCCTS issues
  In-Reply-To: <5FCCEEC4-FDF9-4299-8551-B2F9D11998B6@fastcrypt.com>
  References: <F3AF9C8C-4460-4EA8-8A93-00D70B96899F@fastcrypt.com> <42CB122B.6070708@opencloud.com> <5FCCEEC4-FDF9-4299-8551-B2F9D11998B6@fastcrypt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox