Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 39478 invoked from network); 30 Apr 2005 04:58:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Apr 2005 04:58:49 -0000 Received: (qmail 80184 invoked by uid 500); 30 Apr 2005 05:00:12 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 80139 invoked by uid 500); 30 Apr 2005 05:00:11 -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 80126 invoked by uid 99); 30 Apr 2005 05:00:11 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from e4.ny.us.ibm.com (HELO e4.ny.us.ibm.com) (32.97.182.144) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 29 Apr 2005 22:00:11 -0700 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e4.ny.us.ibm.com (8.12.11/8.12.11) with ESMTP id j3U4wjWr013774 for ; Sat, 30 Apr 2005 00:58:45 -0400 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay02.pok.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j3U4wj01103344 for ; Sat, 30 Apr 2005 00:58:45 -0400 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.12.11/8.13.3) with ESMTP id j3U4wj1g002392 for ; Sat, 30 Apr 2005 00:58:45 -0400 Received: from [127.0.0.1] (sig-9-48-113-134.mts.ibm.com [9.48.113.134]) by d01av03.pok.ibm.com (8.12.11/8.12.11) with ESMTP id j3U4wi36002379 for ; Sat, 30 Apr 2005 00:58:44 -0400 Message-ID: <42731083.5080309@sbcglobal.net> Date: Fri, 29 Apr 2005 21:58:43 -0700 From: Kathey Marsden User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derby Development Subject: Re: [PATCH] Derby-250 With client setObject( parameterIndex, x, java.sql.DOUBLE) throws conversion exception if the object passed is a BigDecimal with more than 31 digits References: <42722F24.9050706@sbcglobal.net> <42726B4C.2080306@Sourcery.Org> <427278D5.6010007@debrunners.com> In-Reply-To: <427278D5.6010007@debrunners.com> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Daniel John Debrunner wrote: >So what happens if the value passed has more than 31 digits? >Does the placement of the decimal point affect the behaviour? > >E.g. what's the outcome for these values? > >12345678901234567890123456789012 > >1.2345678901234567890123456789012 > > > > I have a feeling I might not quite be getting your question but will take a stab at it. They get converted on the client and will insert into the double column but lose precision as they do with embedded.. For these inserted values: new BigDecimal("12345678901234567890123456789012") --> 1.2345678901234567E31 new BigDecimal("1.2345678901234567890123456789012") -->1.2345678901234567 There is still an issue with setBigDecimal which will still throw an exception with these values with the client. A solution to that one is not as clear to me, but I will file a bug for it. Thanks Kathey