Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 38379 invoked from network); 14 Nov 2009 12:19:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Nov 2009 12:19:02 -0000 Received: (qmail 35441 invoked by uid 500); 14 Nov 2009 12:19:02 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 35371 invoked by uid 500); 14 Nov 2009 12:19:02 -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 35363 invoked by uid 99); 14 Nov 2009 12:19:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Nov 2009 12:19:02 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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; Sat, 14 Nov 2009 12:18:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B103E234C1E9 for ; Sat, 14 Nov 2009 04:18:39 -0800 (PST) Message-ID: <1074305291.1258201119724.JavaMail.jira@brutus> Date: Sat, 14 Nov 2009 12:18:39 +0000 (UTC) From: "Sylvain Leroux (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4430) Make ij's SHOW and DESCRIBE commands more db agnostic In-Reply-To: <1725986585.1257170819465.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-4430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sylvain Leroux updated DERBY-4430: ---------------------------------- Attachment: (was: DERBY-4430.ij.out) > Make ij's SHOW and DESCRIBE commands more db agnostic > ----------------------------------------------------- > > Key: DERBY-4430 > URL: https://issues.apache.org/jira/browse/DERBY-4430 > Project: Derby > Issue Type: Improvement > Components: Tools > Affects Versions: 10.6.0.0 > Reporter: Knut Anders Hatlen > Assignee: Sylvain Leroux > Priority: Minor > Attachments: DERBY-4430.ij.out, DERBY-4430.patch, DERBY-4430.patch, DERBY-4430.sql, DERBY-4430.sql > > > ij's SHOW and DESCRIBE commands use DatabaseMetaData in order to be portable to other databases than Derby, and in many cases they work fine with other databases. However, the variants of the commands that take a table name or a schema name assume that unquoted identifiers are converted to and stored in upper case internally. This is not true for all databases, and since these commands don't accept quoted identifiers, there's currently no way to access tables/schemas that are not all upper case. > One possible fix is to make the identifier() method in ij.jj use the DatabaseMetaData methods storesLowerCaseIdentifiers(), storesMixedCaseIdentifiers() and storesUpperCaseIdentifiers() to decide whether it should convert the identifier to lower case, keep it unchanged, or convert it to upper case. Currently, that method always converts the identifiers to upper case. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.