Return-Path: Delivered-To: apmail-db-ddlutils-dev-archive@www.apache.org Received: (qmail 57592 invoked from network); 18 Sep 2010 18:17:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Sep 2010 18:17:55 -0000 Received: (qmail 13873 invoked by uid 500); 18 Sep 2010 18:17:55 -0000 Delivered-To: apmail-db-ddlutils-dev-archive@db.apache.org Received: (qmail 13829 invoked by uid 500); 18 Sep 2010 18:17:54 -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 13821 invoked by uid 99); 18 Sep 2010 18:17:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Sep 2010 18:17:54 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Sep 2010 18:17:53 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8IIHXv0003690 for ; Sat, 18 Sep 2010 18:17:33 GMT Message-ID: <23860465.275951284833853540.JavaMail.jira@thor> Date: Sat, 18 Sep 2010 14:17:33 -0400 (EDT) From: "Thomas Dudziak (JIRA)" To: ddlutils-dev@db.apache.org Subject: [jira] Resolved: (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-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DDLUTILS-205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Dudziak resolved DDLUTILS-205. ------------------------------------- Resolution: Fixed We were unable to reproduce this with current PostgreSql versions. Please reopen if this still is a problem. > 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 > Attachments: Issue205.java, Issue205.out.txt, Issue205.sql > > 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.