From: Lew <noone@lewscanon.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: JDBC CallableStatement bug on functions with return parameter
Date: Sun, 06 Feb 2011 11:24:00 -0500
Message-ID: <iimhuq$f51$3@news.albasani.net> (raw)
In-Reply-To: <4D4D791B.30704@aquafold.com>
References: <4D4D1729020000250003A44E@gw.wicourts.gov>
<4D4D791B.30704@aquafold.com>
(Please do not top-post.)
John LH wrote:
>
> I create the CallableStatement with this :
>
> callStatement = conn.prepareCall("{ ? = CALL "public"."sales_tax"(?) }");
>
> For the return parameter I use :
>
> callStatement.registerOutParameter(1, java.sql.Types.FLOAT);
>
> For the function parameter I use :
>
> callStatement.setObject(2, new Float(25.25));
You do realize that 'float' ('Float') is pretty much the worst type to use for
monetary facts, right?
--
Lew
Ceci n'est pas une fenĂȘtre.
.___________.
|###] | [###|
|##/ | *\##|
|#/ * | \#|
|#----|----#|
|| | * ||
|o * | 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: noone@lewscanon.com
Subject: Re: JDBC CallableStatement bug on functions with return parameter
In-Reply-To: <iimhuq$f51$3@news.albasani.net>
References: <4D4D1729020000250003A44E@gw.wicourts.gov> <4D4D791B.30704@aquafold.com> <iimhuq$f51$3@news.albasani.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