Return-Path: Delivered-To: apmail-db-ddlutils-dev-archive@www.apache.org Received: (qmail 4547 invoked from network); 28 Oct 2005 12:45:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Oct 2005 12:45:22 -0000 Received: (qmail 23639 invoked by uid 500); 28 Oct 2005 12:45:21 -0000 Delivered-To: apmail-db-ddlutils-dev-archive@db.apache.org Received: (qmail 23613 invoked by uid 500); 28 Oct 2005 12:45: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 23602 invoked by uid 99); 28 Oct 2005 12:45:21 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2005 05:45:19 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 17546E1 for ; Fri, 28 Oct 2005 14:44:58 +0200 (CEST) Message-ID: <100628764.1130503498082.JavaMail.jira@ajax.apache.org> Date: Fri, 28 Oct 2005 14:44:58 +0200 (CEST) From: "Robert Einsle (JIRA)" To: ddlutils-dev@db.apache.org Subject: [jira] Updated: (DDLUTILS-39) Creating Foreign Keys before creating the matching Tables In-Reply-To: <1433985139.1130503375296.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DDLUTILS-39?page=all ] Robert Einsle updated DDLUTILS-39: ---------------------------------- Attachment: lakon-db.xml This is the Base-XML-File creating the needed Databases. > Creating Foreign Keys before creating the matching Tables > --------------------------------------------------------- > > Key: DDLUTILS-39 > URL: http://issues.apache.org/jira/browse/DDLUTILS-39 > Project: DdlUtils > Type: Bug > Environment: Windows 2000, XP, Linux, Eclipse, PostgreSQL, hsqldb, MySQL > Reporter: Robert Einsle > Assignee: Thomas Dudziak > Priority: Minor > Attachments: lakon-db.xml > > While testing on an Postgres-Database, we have the Problem DDL-Utils works thrait throu the xml-Inputfile, and alters the Database. But we have an definition of an foreign key insertet in an table above the creation-rule of the table itself. So, DDL-Utils first tries to alter the Database, inserting the Foreign-key, fails, then creates the table. So, we have 2 choices, sorting the xml-inputfile for the foreign keys, or DDL-Utils let to create foreign keys after creating the needed Tables. For my choices i would prefer the second solution. Can i do anything other? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira