From: Oliver Jowett <oliver@opencloud.com>
To: Andres Ledesma <aledes@euskalnet.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: postgresql and java data types mismatch.....
Date: Fri, 12 Aug 2005 01:32:46 +1200
Message-ID: <42FB537E.4070005@opencloud.com> (raw)
In-Reply-To: <200508111323.42615.aledes@euskalnet.net>
References: <200508111323.42615.aledes@euskalnet.net>
Andres Ledesma wrote:
> According to documentation, java.sql.Types.BOOLEAN is the equivalence of SQL
> BOOLEAN, but a function returning a boolean, returns something matched to
> Types.BIT in java. It happens in the following code.
Types.BIT and Types.BOOLEAN are, as far as I can tell from the JDBC
spec, intended to be interchangeable.
> 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.
You didn't say which driver version you were using..
-O
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: oliver@opencloud.com, aledes@euskalnet.net
Subject: Re: postgresql and java data types mismatch.....
In-Reply-To: <42FB537E.4070005@opencloud.com>
References: <200508111323.42615.aledes@euskalnet.net> <42FB537E.4070005@opencloud.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