Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 46469 invoked from network); 22 Nov 2004 00:31:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 22 Nov 2004 00:31:38 -0000 Received: (qmail 2375 invoked by uid 500); 22 Nov 2004 00:31:35 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 2310 invoked by uid 500); 22 Nov 2004 00:31:35 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: Reply-To: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 2255 invoked by uid 99); 22 Nov 2004 00:31:33 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Sun, 21 Nov 2004 16:31:29 -0800 Received: (qmail 7706 invoked from network); 22 Nov 2004 00:31:25 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 22 Nov 2004 00:31:25 -0000 Message-ID: <275399770.1101083485545.JavaMail.apache@nagoya> Date: Sun, 21 Nov 2004 16:31:25 -0800 (PST) From: "Jeremy Boynes (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-74) SQLDecimal.getWholeDigits returns invalid result on JDK1.5.0 In-Reply-To: <2036224071.1101081504169.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N [ http://nagoya.apache.org/jira/browse/DERBY-74?page=comments#action_55723 ] Jeremy Boynes commented on DERBY-74: ------------------------------------ previous patch also fixed a couple of JavaDoc errors and unused imports in SQLDecimal.java > SQLDecimal.getWholeDigits returns invalid result on JDK1.5.0 > ------------------------------------------------------------ > > Key: DERBY-74 > URL: http://nagoya.apache.org/jira/browse/DERBY-74 > Project: Derby > Type: Bug > Components: SQL > Environment: JDK1.5.0 > Reporter: Jeremy Boynes > Attachments: derby_getWholeDigits_jdk15.patch > > With JDK1.5.0 the behaviour of BigDecimal.toString() has changed (thanks Sun) and for numbers < 1e-6 it now returns a String in exponential syntax. This causes the number of digits to be calculated incorrectly. > As a result, the ejbql test fails as the following snippet fails: > create table myDecimal (b DECIMAL(31,31)) > insert into myDecimal VALUES(1e-30) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nagoya.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira