Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 8078 invoked from network); 7 Jul 2006 00:58:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jul 2006 00:58:30 -0000 Received: (qmail 51944 invoked by uid 500); 7 Jul 2006 00:58:29 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 51891 invoked by uid 500); 7 Jul 2006 00:58:28 -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 51878 invoked by uid 99); 7 Jul 2006 00:58:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jul 2006 17:58:28 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 32.97.110.154 is neither permitted nor denied by domain of bandaram@gmail.com) Received: from [32.97.110.154] (HELO e36.co.us.ibm.com) (32.97.110.154) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jul 2006 17:58:27 -0700 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e36.co.us.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k670w6SC001334 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 6 Jul 2006 20:58:06 -0400 Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d03relay04.boulder.ibm.com (8.13.6/NCO/VER7.0) with ESMTP id k670wT9e172312 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 6 Jul 2006 18:58:29 -0600 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k670w64g032144 for ; Thu, 6 Jul 2006 18:58:06 -0600 Received: from [127.0.0.1] (dyn9030038206.svl.ibm.com [9.30.38.206]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k670vvnl032053 for ; Thu, 6 Jul 2006 18:58:06 -0600 Message-ID: <44ADB189.2050007@gmail.com> Date: Thu, 06 Jul 2006 17:57:45 -0700 From: Satheesh Bandaram User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: DERBY-396: Drop Column dependency questions References: <1516417.1152061955352.JavaMail.jira@brutus> <44AC9374.8090304@amberpoint.com> In-Reply-To: <44AC9374.8090304@amberpoint.com> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii 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 Hi Bryan, Thanks for working on this long requested feature. More below... Bryan Pendleton wrote: > > Does it seem correct that: > > a) RESTRICT processing should consider an index on a column to be > a dependent object and fail the DROP COLUMN if the column is used > in an index? What happens when you drop a column with restrict that is part of a composite index? How about if there are any constraints on that column? Also have to worry about that being a triggering column or part of trigger body. I personally prefer if DROP COLUMN also implicitly drops an index on that column, even for RESTRICT. It should also be able to drop a default and any constraints that affect only that column. (though not sure if there is a primary key on that column) > b) CASCADE processing should cascade the DROP COLUMN to include > dropping a view which uses the column that is dropped? > Derby doesn't support CASCADE option for any DDLs that I am aware of. Like dropping a table with CASCADE option or dropping a schema with CASCADE option to drop dependent objects. I wouldn't implement CASCADE option only for DROP COLUMN... that probably depends on real cascade implementation underneath it. Also would raise lots of questions about what else you should drop... like constraints, triggers, composite indexes etc... Satheesh > thanks, > > bryan > >