Return-Path: Delivered-To: apmail-db-ddlutils-dev-archive@www.apache.org Received: (qmail 33311 invoked from network); 8 Feb 2008 17:06:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Feb 2008 17:06:37 -0000 Received: (qmail 45098 invoked by uid 500); 8 Feb 2008 17:06:29 -0000 Delivered-To: apmail-db-ddlutils-dev-archive@db.apache.org Received: (qmail 45067 invoked by uid 500); 8 Feb 2008 17:06:29 -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 45056 invoked by uid 99); 8 Feb 2008 17:06:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 09:06:29 -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 17:06:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7440B714074 for ; Fri, 8 Feb 2008 09:06:12 -0800 (PST) Message-ID: <13625732.1202490372473.JavaMail.jira@brutus> Date: Fri, 8 Feb 2008 09:06:12 -0800 (PST) From: "Thomas Dudziak (JIRA)" To: ddlutils-dev@db.apache.org Subject: [jira] Commented: (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:comment-tabpanel&focusedCommentId=12567095#action_12567095 ] Thomas Dudziak commented on DDLUTILS-192: ----------------------------------------- How does PostgreSQL reference the column incorrectly ? Could you perhaps post some table creation SQL that leads to this error ? > 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.