Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 37232 invoked from network); 21 Nov 2004 23:58:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 21 Nov 2004 23:58:30 -0000 Received: (qmail 78611 invoked by uid 500); 21 Nov 2004 23:58:30 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 78400 invoked by uid 500); 21 Nov 2004 23:58:29 -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 78388 invoked by uid 99); 21 Nov 2004 23:58:28 -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 15:58:25 -0800 Received: (qmail 650 invoked from network); 21 Nov 2004 23:58:24 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 21 Nov 2004 23:58:24 -0000 Message-ID: <2036224071.1101081504169.JavaMail.apache@nagoya> Date: Sun, 21 Nov 2004 15:58:24 -0800 (PST) From: "Jeremy Boynes (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-74) SQLDecimal.getWholeDigits returns invalid result on JDK1.5.0 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 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 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