Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 74633 invoked from network); 26 Jun 2006 07:12:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jun 2006 07:12:12 -0000 Received: (qmail 40810 invoked by uid 500); 26 Jun 2006 07:12:06 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 40777 invoked by uid 500); 26 Jun 2006 07:12:05 -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 40711 invoked by uid 99); 26 Jun 2006 07:12:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jun 2006 00:12:03 -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; Mon, 26 Jun 2006 00:12:03 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 110FB410008 for ; Mon, 26 Jun 2006 07:10:31 +0000 (GMT) Message-ID: <4900087.1151305831067.JavaMail.jira@brutus> Date: Mon, 26 Jun 2006 07:10:31 +0000 (GMT+00:00) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-137) Derby metadata always returns JDBC 2 result sets, even when JDBC 3 result sets are required. In-Reply-To: <92467483.1107378979443.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-137?page=comments#action_12417738 ] Knut Anders Hatlen commented on DERBY-137: ------------------------------------------ I plan to commit this patch tomorrow. If someone is planning to review, please let me know and I'll hold the commit. Thanks! > Derby metadata always returns JDBC 2 result sets, even when JDBC 3 result sets are required. > -------------------------------------------------------------------------------------------- > > Key: DERBY-137 > URL: http://issues.apache.org/jira/browse/DERBY-137 > Project: Derby > Type: Bug > Components: JDBC > Reporter: A B > Assignee: Knut Anders Hatlen > Priority: Critical > Attachments: derby-137-v1.diff, derby-137-v1.stat > > BACKGROUND: > Derby's implementation of the JDBC class java.sql.DatabaseMetaData returns result sets that are defined by the SQL queries in impl/jdbc/metadata.properties. > PROBLEM: > The current queries in the metadata.properties file are for JDBC 2 only. The queries do NOT account for the result sets as defined by JDBC 3, and thus even when JDBC 3 result sets should be returned, a user will get metadata correlating to the JDBC 2 standard. > Just for reference, here are a couple of examples of changes that have been made from JDBC 2 to JDBC 3: > 1) getColumns(): JDBC 2 specifies 18 columns, JDBC 3 specifies 22 (the four extra columns are SCOPE_CATALOG, SCOPE_SCHEMA, SCOPE_TABLE, and SOURCE_DATA_TYPE). > 2) getTables(): JDBC 2 specifics 5 columns, JDBC 3 specifies 10 (the five extra columns are TYPE_CAT, TYPE_SCHEM, TYPE_NAME, SELF_REFERENCING_COL_NAME, and REF_GENERATION). > 3) getProcedureColumns(): JDBC 2 specifies that DATA_TYPE is a "short"; JDBC 3 specifies that DATA_TYPE is an "int". > NOTES: > JDBC 3 needs to be backward compatible with JDBC 2, so it should be okay to just modify metadata.properties to return JDBC 3 result sets... -- 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