Return-Path: Delivered-To: apmail-db-ddlutils-dev-archive@www.apache.org Received: (qmail 75803 invoked from network); 8 Feb 2008 15:10:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Feb 2008 15:10:32 -0000 Received: (qmail 59846 invoked by uid 500); 8 Feb 2008 15:10:23 -0000 Delivered-To: apmail-db-ddlutils-dev-archive@db.apache.org Received: (qmail 59631 invoked by uid 500); 8 Feb 2008 15:10:22 -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 59514 invoked by uid 99); 8 Feb 2008 15:10:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 07:10:22 -0800 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.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 15:10:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 41EA6714079 for ; Fri, 8 Feb 2008 07:10:08 -0800 (PST) Message-ID: <18054257.1202483408267.JavaMail.jira@brutus> Date: Fri, 8 Feb 2008 07:10:08 -0800 (PST) From: "Sebastian Niezgoda (JIRA)" To: ddlutils-dev@db.apache.org Subject: [jira] Updated: (DDLUTILS-192) Model exception thrown when index references an undefined column In-Reply-To: <3250475.1202483407893.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-192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebastian Niezgoda updated DDLUTILS-192: ---------------------------------------- Attachment: Table.java Attached is a modified Table.java. > Model exception thrown when index references an undefined column > ---------------------------------------------------------------- > > Key: DDLUTILS-192 > URL: https://issues.apache.org/jira/browse/DDLUTILS-192 > Project: DdlUtils > Issue Type: Bug > Components: Core (No specific database) > Affects Versions: 1.0 > Reporter: Sebastian Niezgoda > Assignee: Thomas Dudziak > Attachments: Table.java > > > org.apache.ddlutils.model.ModelException: The index in table references the undefined column is thrown when referencing a column that exists but is referenced in Postgres incorrectly. > Column type exists in a table. In an index, however, type is stored as "type". The quotes ("") disallow Java from finding the column. > The fix is simple: > add name = name.replace("\"", ""); to the very top of findColumn(String name, boolean caseSensitive) in org.apache.ddlutils.model.Table -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.