Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 11898 invoked from network); 6 Jul 2009 19:19:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jul 2009 19:19:29 -0000 Received: (qmail 86725 invoked by uid 500); 6 Jul 2009 19:19:39 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 86666 invoked by uid 500); 6 Jul 2009 19:19:39 -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 86658 invoked by uid 99); 6 Jul 2009 19:19:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 19:19:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 19:19:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E81D329A0012 for ; Mon, 6 Jul 2009 12:19:14 -0700 (PDT) Message-ID: <559610626.1246907954949.JavaMail.jira@brutus> Date: Mon, 6 Jul 2009 12:19:14 -0700 (PDT) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-2287) JDBC meta data for precision and size is inconsistent and does not match JDBC specifications. In-Reply-To: <8864359.1170437465494.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Hillegas updated DERBY-2287: --------------------------------- Urgency: Urgent Triaged for 10.5.2: assigned normal urgency. > JDBC meta data for precision and size is inconsistent and does not match JDBC specifications. > --------------------------------------------------------------------------------------------- > > Key: DERBY-2287 > URL: https://issues.apache.org/jira/browse/DERBY-2287 > Project: Derby > Issue Type: Bug > Components: JDBC, Network Client > Affects Versions: 10.0.2.0, 10.0.2.1, 10.1.1.0, 10.1.2.1, 10.1.3.1, 10.2.1.6, 10.2.2.0 > Reporter: Daniel John Debrunner > Priority: Minor > > JDBC 4.0 has clarified the definitions of precision in the java doc for various methods that return precision or size. The concept of precision and size seems to be the same, just having different method or column names in various situations. > Derby does not follow the JDBC 4 specifications consistently, for example -1 is sometimes used to indicate not applicable, where JBDC 4 says NULL or 0. The precision of datetime columns is defined to be non-zero but in some situations Derby returns 0. > jdbcapi.DatabaseMetaDataTest can show some of these issues, the test of getColumns() should compare the information in the COLUMN_SIZE column to the ResultSetMetaData getPrecision() method for the same column. The comparisions are not made currently because the number of mismatches is high. [this code is not yet committed]. > Existing application impact as Derby applications may have been relying on the old incorrect & inconsistent behaviour. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.