X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 87CD89DC883 for ; Fri, 3 Feb 2006 15:03:07 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 93934-06 for ; Fri, 3 Feb 2006 15:03:07 -0400 (AST) X-Greylist: delayed 00:06:40.496038 by SQLgrey- Received: from web54406.mail.yahoo.com (web54406.mail.yahoo.com [206.190.49.136]) by postgresql.org (Postfix) with SMTP id C260E9DC816 for ; Fri, 3 Feb 2006 15:03:04 -0400 (AST) Received: (qmail 76205 invoked by uid 60001); 3 Feb 2006 18:56:24 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=etMXblieuAKDmhScfQA6guI6VsVlGeN4FkkKsXIaDGxOGF6WISvEXqAi/Hb9WVw9YfYMakhNQrAUyMVNGcP5LfTlaHTF3u7oWBdTP5nc75jpKwjI0/h5crmJN5XIMANNtyvfaw+JEQ3HWIfYjvoqCEk9kZixo/xGtGC7uAdNoxU= ; Message-ID: <20060203185624.76203.qmail@web54406.mail.yahoo.com> Received: from [204.174.64.35] by web54406.mail.yahoo.com via HTTP; Fri, 03 Feb 2006 13:56:23 EST Date: Fri, 3 Feb 2006 13:56:23 -0500 (EST) From: Trevor Baker Subject: why setFloat() changed to Oid.FLOAT8? To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.479 required=5 tests=[DNS_FROM_RFC_ABUSE=0.479] X-Spam-Score: 0.479 X-Spam-Level: X-Archive-Number: 200602/20 X-Sequence-Number: 14617 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