Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 86183 invoked from network); 9 Sep 2004 21:24:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Sep 2004 21:24:54 -0000 Received: (qmail 63803 invoked by uid 500); 9 Sep 2004 21:24:54 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 63781 invoked by uid 500); 9 Sep 2004 21:24:53 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: "Derby Discussion" Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 63770 invoked by uid 99); 9 Sep 2004 21:24:53 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [12.25.233.219] (HELO mail.asynchrony.com) (12.25.233.219) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 09 Sep 2004 14:24:51 -0700 Received: from nmckiel1 (nmckie-l1.TheForce [192.168.2.182]) (authenticated bits=0) by mail.asynchrony.com (8.12.8/8.12.5) with ESMTP id i89LLo5m032259 for ; Thu, 9 Sep 2004 16:21:50 -0500 Message-Id: <200409092121.i89LLo5m032259@mail.asynchrony.com> From: "Nate McKie" To: Subject: Inconsistencies in PreparedStatement.setFloat/setDouble Date: Thu, 9 Sep 2004 16:24:44 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Thread-Index: AcSWs2z9dot0e8f8QEmwCKp1AXcP5A== X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean X-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-101.87, required 6, BAYES_00 -4.90, MSGID_FROM_MTA_SHORT 3.03, USER_IN_WHITELIST -100.00) X-MailScanner-From: nate.mckie@asolutions.com X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N We have found in using Cloudscape/Derby that there are inconsistencies in the behavior of how floating-point numbers are saved to the database depending on whether you use PreparedStatement.setFloat or PreparedStatement.setDouble. setDouble seems to work better. These problems are predictable and repeatable, and we've written some Junit tests to show what happens. Here's a link to the base code for what we wrote: http://demo0.asolutions.com/CloudscapeInsertionAnomalyTest.java You can't run this code without the database schema and some helper classes, but I can assure you that all of these tests pass. Does anyone know what's going on here, or have any suggestions? Do I need to submit this information more formally to get the problem resolved? Thanks, Nate McKie Asynchrony Solutions, Inc. www.asolutions.com