Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 41354 invoked from network); 13 Oct 2010 13:13:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Oct 2010 13:13:03 -0000 Received: (qmail 25244 invoked by uid 500); 13 Oct 2010 13:13:03 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 24277 invoked by uid 500); 13 Oct 2010 13:12:58 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 24251 invoked by uid 99); 13 Oct 2010 13:12:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Oct 2010 13:12:57 +0000 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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Oct 2010 13:12:55 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9DDCX0E014804 for ; Wed, 13 Oct 2010 13:12:33 GMT Message-ID: <25594931.112521286975553618.JavaMail.jira@thor> Date: Wed, 13 Oct 2010 09:12:33 -0400 (EDT) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-4844) Implement DROP SCHEMA CASCADE 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 Implement DROP SCHEMA CASCADE ----------------------------- Key: DERBY-4844 URL: https://issues.apache.org/jira/browse/DERBY-4844 Project: Derby Issue Type: Improvement Components: SQL Reporter: Rick Hillegas Right now you can only drop an empty schema. This is the command you use: DROP SCHEMA schemaName RESTRICT Before dropping a schema, you need to drop all of its objects in the reverse order that you created them. That prevents you from tripping across dependencies among the objects (like constraints). There appears to be some interest in implementing the standard CASCADE clause: DROP SCHEMA schemaName CASCADE This version of the DROP SCHEMA command would figure out the correct order in which to drop the objects inside the schema. The command could still fail, of course, if other schemas depended on objects in the dropped schema. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.