From: Kris Jurka <books@ejurka.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: Andres Ledesma <aledes@euskalnet.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: postgresql and java data types mismatch.....
Date: Fri, 19 Aug 2005 00:03:31 -0500 (EST)
Message-ID: <Pine.BSO.4.62.0508190001320.11917@leary.csoft.net> (raw)
In-Reply-To: <42FB537E.4070005@opencloud.com>
References: <200508111323.42615.aledes@euskalnet.net>
<42FB537E.4070005@opencloud.com>
On Fri, 12 Aug 2005, Oliver Jowett wrote:
> Andres Ledesma wrote:
>
>> A CallableStatement Function was executed and the return was of type
>> (java.sql.Types=-7) however type=java.sql.Types=16 was registered.
>>
>> Types = -7 correspond to Types.BIT
>> Types = 16 correspond to Types.BOOLEAN
>
> A workaround is to just register the OUT parameter as Types.BIT, but
> yes, the driver shouldn't really complain in this case.
>
Just to follow up on this, the 8.0 and 8.1 drivers correctly handle this
and do not report an error. It is still possible to generate this error
with the new drivers by using the JDBC 2 version of the driver because it
doesn't understand the JDBC 3 type BOOLEAN and thereforce cannot map it
correctly.
Kris Jurka
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: books@ejurka.com, oliver@opencloud.com, aledes@euskalnet.net
Subject: Re: postgresql and java data types mismatch.....
In-Reply-To: <Pine.BSO.4.62.0508190001320.11917@leary.csoft.net>
References: <200508111323.42615.aledes@euskalnet.net> <42FB537E.4070005@opencloud.com> <Pine.BSO.4.62.0508190001320.11917@leary.csoft.net>
* 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