Return-Path: Delivered-To: apmail-db-ddlutils-dev-archive@www.apache.org Received: (qmail 65368 invoked from network); 13 Mar 2009 19:37:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Mar 2009 19:37:16 -0000 Received: (qmail 82881 invoked by uid 500); 13 Mar 2009 19:37:15 -0000 Delivered-To: apmail-db-ddlutils-dev-archive@db.apache.org Received: (qmail 82871 invoked by uid 500); 13 Mar 2009 19:37:15 -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 82860 invoked by uid 99); 13 Mar 2009 19:37:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Mar 2009 12:37:15 -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; Fri, 13 Mar 2009 19:37:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9519E234C041 for ; Fri, 13 Mar 2009 12:36:52 -0700 (PDT) Message-ID: <615848511.1236973012595.JavaMail.jira@brutus> Date: Fri, 13 Mar 2009 12:36:52 -0700 (PDT) From: "Tomislav Nakic-Alfirevic (JIRA)" To: ddlutils-dev@db.apache.org Subject: [jira] Commented: (DDLUTILS-212) Support for indexes that use functions In-Reply-To: <810986897.1214232046197.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DDLUTILS-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681874#action_12681874 ] Tomislav Nakic-Alfirevic commented on DDLUTILS-212: --------------------------------------------------- I ran into this issue as well. In my use cases, it would be much better if the export proceeded ignoring the functional index than break the export altogether, i.e. all that would have to be done is to comment out one line of code, Database.java:451 or provide some kind of parameter "ignoreMissingIndexColumns" to allow users to choose. > Support for indexes that use functions > -------------------------------------- > > Key: DDLUTILS-212 > URL: https://issues.apache.org/jira/browse/DDLUTILS-212 > Project: DdlUtils > Issue Type: New Feature > Components: Core - PostgreSql > Affects Versions: 1.0 > Environment: RHEL 4 Linux > Reporter: prasanna > Assignee: Thomas Dudziak > > I created a postgres database and ran this SQL: > /*create LANGUAGE plpgsql;*/ > CREATE OR REPLACE FUNCTION FUNC (/*id*/ INTEGER, /*status*/ INTEGER) > RETURNS NUMERIC AS' > BEGIN > RETURN 0; > END; > 'LANGUAGE plpgsql IMMUTABLE; > create table test_list > ( > test_list_id integer not null, --pk > test_id integer not null, --fk > status_id integer not null --fk > ); > create unique index uq_test_list on test_list(test_list_id, test_id, func(test_list_id, status_id)); > When trying to load the database schema in Jasper Server it fails with this exception: > Caused by: org.apache.ddlutils.model.ModelException: The index uq_test_list in table test_list references the undefined column func(test_list_id, status_id) > 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 com.jaspersoft.commons.semantic.metaapi.impl.jdbc.BaseJdbcMetaDataFactoryImpl.getMetaData(BaseJdbcMetaDataFactoryImpl.java:82) > I applied the fix mentioned here: > https://issues.apache.org/jira/browse/DDLUTILS-192 > Still it fails with the same exception. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.