From: Trevor Baker <amoebaworks@yahoo.ca>
To: pgsql-jdbc@postgresql.org
Subject: why setFloat() changed to Oid.FLOAT8?
Date: Fri, 3 Feb 2006 13:56:23 -0500 (EST)
Message-ID: <20060203185624.76203.qmail@web54406.mail.yahoo.com> (raw)
Hi,
I'm thinking of upgrading from 8.0 to 8.1, but I'm
wondering why the change in
AbstractJdbc2Statement.setFloat() (and elsewhere in
the class) of floats now being Oid.FLOAT8 instead of
Ois.FLOAT4?
In 8.0, I have a few functions that take a REAL as
input, and I use setFloat (the 4-byte float equivalent
in java) to pass the values. But in 8.1, using
setFloat() now looks for functions that take DOUBLE
PRECISION because the change in mapping.
I know I can change my functions, tables and java
methods to DOUBLE PRECISION and setDouble() to use
8-byte floats to avoid this issue, but again just
wondering what's up with the 4-byte float support.
thanks,
Trevor Baker
__________________________________________________________
Find your next car at http://autos.yahoo.ca
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: amoebaworks@yahoo.ca
Subject: Re: why setFloat() changed to Oid.FLOAT8?
In-Reply-To: <20060203185624.76203.qmail@web54406.mail.yahoo.com>
References: <20060203185624.76203.qmail@web54406.mail.yahoo.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