Re: why setFloat() changed to Oid.FLOAT8? - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: why setFloat() changed to Oid.FLOAT8?
Date
Msg-id Pine.BSO.4.61.0602031417100.9876@leary.csoft.net
Whole thread Raw
In response to why setFloat() changed to Oid.FLOAT8?  (Trevor Baker <amoebaworks@yahoo.ca>)
List pgsql-jdbc

On Fri, 3 Feb 2006, Trevor Baker wrote:

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

This change was made to pass Sun's JDBC test suite.  Their test suite
requires the full precision of Float.MAX_VALUE to Float.MIN_VALUE to be
support for setFloat which requires pg's double type on the server side.

Kris Jurka

pgsql-jdbc by date:

Previous
From: Trevor Baker
Date:
Subject: why setFloat() changed to Oid.FLOAT8?
Next
From: Kris Jurka
Date:
Subject: Re: escapeQuotes causes faults in DatabaseMataData