Return-Path: Delivered-To: apmail-db-ddlutils-dev-archive@www.apache.org Received: (qmail 49050 invoked from network); 14 May 2008 05:52:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 May 2008 05:52:19 -0000 Received: (qmail 97206 invoked by uid 500); 14 May 2008 05:52:21 -0000 Delivered-To: apmail-db-ddlutils-dev-archive@db.apache.org Received: (qmail 97188 invoked by uid 500); 14 May 2008 05:52:21 -0000 Mailing-List: contact ddlutils-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ddlutils-dev@db.apache.org Delivered-To: mailing list ddlutils-dev@db.apache.org Received: (qmail 97177 invoked by uid 99); 14 May 2008 05:52:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 May 2008 22:52:20 -0700 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; Wed, 14 May 2008 05:51:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9F653234C115 for ; Tue, 13 May 2008 22:51:55 -0700 (PDT) Message-ID: <81488042.1210744315651.JavaMail.jira@brutus> Date: Tue, 13 May 2008 22:51:55 -0700 (PDT) From: "Andrew S. (JIRA)" To: ddlutils-dev@db.apache.org Subject: [jira] Commented: (DDLUTILS-205) Upper case indexed column name causes Exception on readModelFromDatabase call In-Reply-To: <355930516.1210702315579.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DDLUTILS-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596635#action_12596635 ] Andrew S. commented on DDLUTILS-205: ------------------------------------ platform.setDelimitedIdentifierModeOn(true) does not help. > Upper case indexed column name causes Exception on readModelFromDatabase call > ----------------------------------------------------------------------------- > > Key: DDLUTILS-205 > URL: https://issues.apache.org/jira/browse/DDLUTILS-205 > Project: DdlUtils > Issue Type: Bug > Components: Core - PostgreSql > Affects Versions: 1.0 > Environment: DB: psql 8.2.3, JDBC: postgresql-8.2-504.jdbc3.jar, OS: Windows XP Pro, DdlUtils: 1.0 > Reporter: Andrew S. > Assignee: Thomas Dudziak > Priority: Blocker > Original Estimate: 4h > Remaining Estimate: 4h > > Consider the following example: > ---- > CREATE TABLE product ( > product_class_id integer NOT NULL, > product_id integer NOT NULL, > brand_name character varying(60), > product_name character varying(60) NOT NULL, > "SKU" bigint NOT NULL, > "SRP" numeric(10,4), > gross_weight real, > net_weight real, > recyclable_package boolean, > low_fat boolean, > units_per_case smallint, > cases_per_pallet smallint, > shelf_width real, > shelf_height real, > shelf_depth real > ); > CREATE INDEX "i_product_SKU" ON product USING btree ("SKU"); > --- > When such DB gets read by calling readModelFromDatabase(.), the following exception happens: > org.apache.ddlutils.model.ModelException: The index i_product_SKU in table product references the undefined column "SKU" > at org.apache.ddlutils.model.Database.initialize(Database.java:393) > at org.apache.ddlutils.platform.JdbcModelReader.getDatabase(JdbcModelReader.java:484) > at org.apache.ddlutils.platform.PlatformImplBase.readModelFromDatabase(PlatformImplBase.java:1920) > at DdlUtilsExample.main(DdlUtilsExample.java:66) > While table gets the column name as [SKU], index gets it as ["SKU"]. On checkup in Database.initialize(), indexed column cannot be found by name under given table, and Exception gets thrown. > It looks like a postgresql bug in JDBC driver that needs a special care in this project. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.