Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 51776 invoked from network); 13 Jul 2006 06:09:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jul 2006 06:09:33 -0000 Received: (qmail 60596 invoked by uid 500); 13 Jul 2006 06:09:30 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 60559 invoked by uid 500); 13 Jul 2006 06:09:30 -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: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 60509 invoked by uid 99); 13 Jul 2006 06:09:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jul 2006 23:09:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jul 2006 23:09:30 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B78E1410501 for ; Thu, 13 Jul 2006 06:07:30 +0000 (GMT) Message-ID: <31124770.1152770850749.JavaMail.jira@brutus> Date: Thu, 13 Jul 2006 06:07:30 +0000 (GMT+00:00) From: "Mayuresh Nirhali (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-836) ResultSetMetaData.getColumnDisplaySize sometimes returns wrong values for DECIMAL columns In-Reply-To: <1595219192.1137720462262.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-836?page=all ] Mayuresh Nirhali updated DERBY-836: ----------------------------------- Attachment: derby836-v6.diff Thanks Dan for pointing out the error. I have now added diffs for the master files which were failing due to this change and a complete patch is now attached as derby836-v6.diff. > ResultSetMetaData.getColumnDisplaySize sometimes returns wrong values for DECIMAL columns > ----------------------------------------------------------------------------------------- > > Key: DERBY-836 > URL: http://issues.apache.org/jira/browse/DERBY-836 > Project: Derby > Type: Bug > Components: JDBC, Newcomer > Versions: 10.2.0.0 > Reporter: Daniel John Debrunner > Assignee: Mayuresh Nirhali > Priority: Minor > Attachments: derby836-v2.diff, derby836-v3.diff, derby836-v4.diff, derby836-v6.diff, derby836.diff, derby836_v5.diff > > DECIMAL(10,0) > max display width value: -1234567890 length 11 > embedded : 11 correct > client: 12 WRONG > DECIMAL(10,10) > max display width value: -0.1234567890 length 13 > embedded : 13 correct > client: 12 WRONG > DECIMAL(10,2) > max display width value: -12345678.90 length 12 > embedded : 13 WRONG > client: 12 correct > I've added output early on in jdbcapi/metadata_test.java (and hence the tests metadata.jar and odbc_metadata.java) to show this issue: > E.g. for embedded > DECIMAL(10,0) -- precision: 10 scale: 0 display size: 12 type name: DECIMAL > DECIMAL(10,10) -- precision: 10 scale: 10 display size: 12 type name: DECIMAL > DECIMAL(10,2) -- precision: 10 scale: 2 display size: 12 type name: DECIMAL > I will add this test output once DERBY-829 is fixed so as not to cause conflicts. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira