Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 45096 invoked from network); 17 Jul 2006 11:22:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Jul 2006 11:22:23 -0000 Received: (qmail 38862 invoked by uid 500); 17 Jul 2006 11:22:23 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 38848 invoked by uid 500); 17 Jul 2006 11:22:22 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 38837 invoked by uid 99); 17 Jul 2006 11:22:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jul 2006 04:22:22 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jul 2006 04:22:22 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BEA0C41001E for ; Mon, 17 Jul 2006 11:20:15 +0000 (GMT) Message-ID: <3535909.1153135215778.JavaMail.jira@brutus> Date: Mon, 17 Jul 2006 04:20:15 -0700 (PDT) From: "Thoralf Rickert (JIRA)" To: torque-dev@db.apache.org Subject: [jira] Commented: (TORQUE-45) Generated SQL is in wrong order when dropping tables on table re-creation In-Reply-To: <23867694.1153129213912.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/TORQUE-45?page=comments#action_12421580 ] Thoralf Rickert commented on TORQUE-45: --------------------------------------- > So how are tables with circular references dropped? I have this circular references problem in one of my schemes. And my solution is to drop the whole database. This isn't a problem in a development environment (it's faster) and later in a production environment you don't drop tables. > Generated SQL is in wrong order when dropping tables on table re-creation > ------------------------------------------------------------------------- > > Key: TORQUE-45 > URL: http://issues.apache.org/jira/browse/TORQUE-45 > Project: Torque > Issue Type: Bug > Components: Generator > Affects Versions: 3.2, 3.1.1 > Environment: java 1.4.2, 1.5. Solaris 10. > Reporter: Joe Carter > > When the table creation SQL is re-run when the schema contains foreign keys, you will get referential integrity complaints. > This is because the table drop order means that it tries to drop dependent tables first. > To fix this, the drop statements should be before all the creates. They should also be in reverse order to the creates. > A method to be able to obtain the tables in reverse order will be needed to allow the templates to be modified to fix this. -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org