Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 58CC511008 for ; Tue, 29 Jul 2014 21:53:57 +0000 (UTC) Received: (qmail 39622 invoked by uid 500); 29 Jul 2014 21:53:57 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 39597 invoked by uid 500); 29 Jul 2014 21:53:57 -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 39586 invoked by uid 99); 29 Jul 2014 21:53:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jul 2014 21:53:56 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of msatoor@gmail.com designates 209.85.212.182 as permitted sender) Received: from [209.85.212.182] (HELO mail-wi0-f182.google.com) (209.85.212.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jul 2014 21:53:52 +0000 Received: by mail-wi0-f182.google.com with SMTP id d1so1294512wiv.3 for ; Tue, 29 Jul 2014 14:53:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=AHGPMiFun74SviMsXNkgaPa44u6kwCELwOyf2LhIWIQ=; b=HSS8IRKIw6j2UZBFBRfPdfAi+l6JmuNGKQZ8fX4S1rbt0HQcwCoC0HT7bx+2fVAQLh aFI8rYlBsqrTvvq6w/ia44HqVHkHJkzrzByMkPwe72pn7FklRwdv18clxgKVLvijxX4n 93WqObQHeYRFYVBHPKejJ8QHS5R0CQdHdpywDKLAqQQoWAAZmHbHqNXRCC/HY+kQH20N P6g46PI3E21gzLXI2l8wpgswZFJr75PTdzKs2WQ4A8Jv9bwJ01SVVrljx2g5fxC0eR5M 9hBuCrsvcF4Ll/1ouQ4ttt5XaMH8ez87vsWunqOoCyrq5mrXP8wabr4FDEeK+2SFD214 Jwmg== MIME-Version: 1.0 X-Received: by 10.180.104.42 with SMTP id gb10mr762028wib.65.1406670811440; Tue, 29 Jul 2014 14:53:31 -0700 (PDT) Received: by 10.216.177.1 with HTTP; Tue, 29 Jul 2014 14:53:31 -0700 (PDT) In-Reply-To: <53D7B868.8030307@oracle.com> References: <53D7B868.8030307@oracle.com> Date: Tue, 29 Jul 2014 14:53:31 -0700 Message-ID: Subject: Re: renaming a referenced table From: Mamta Satoor To: Derby Development Content-Type: multipart/alternative; boundary=f46d041826f6082ddf04ff5c1243 X-Virus-Checked: Checked by ClamAV on apache.org --f46d041826f6082ddf04ff5c1243 Content-Type: text/plain; charset=UTF-8 Hi Rick, I looked through the original functional spec and see a mention of this limitation but the reason is not explained. I unfortunately do not have old emails anymore where they may have been discussions about it. Talked to Mike on this briefly and his guess was that may be at that time in Cloudscape's life cycle, we were more focused on getting easy functionality out quick or may be there were catalogs referencing things by name rather than uuid and thus making the complete implementation harder. So, not really sure why this restriction was put in place. thanks, Mamta On Tue, Jul 29, 2014 at 8:06 AM, Rick Hillegas wrote: > I am working on a patch (DERBY-6672) which lifts the following limitation > in Derby: you can't RENAME a table referenced by a foreign key. The > limitation seems to go back at least as far as Cloudscape 5.1 but not as > far back as Cloudscape 3.5 (which doesn't have a RENAME TABLE command). I > don't have access to the code archaeology for this limitation. Could > someone with access to the code archaeology help me understand the > motivation for this limitation? I don't want to remove this limitation if > it is going to cause some known edge-case to fail. > > Thanks, > -Rick > --f46d041826f6082ddf04ff5c1243 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Rick,
=C2=A0
I looked through = the original functional spec and see a mention of this limitation=C2=A0but = the=C2=A0reason is not explained. I unfortunately do not have old emails an= ymore where they may have been discussions about it. Talked to Mike on this= briefly and his guess was that may be at that time in Cloudscape's lif= e cycle, we were more focused on getting easy functionality out quick or ma= y be there were catalogs referencing things by name rather than uuid and th= us making the complete=C2=A0implementation harder.
=C2=A0
So, not really sure why this restriction was put in p= lace.
=C2=A0
thanks,
Mamta


On Tue, Jul 29, 2014= at 8:06 AM, Rick Hillegas <rick.hillegas@oracle.com>= wrote:
I am working on a patch (DERBY-6672) which l= ifts the following limitation in Derby: you can't RENAME a table refere= nced by a foreign key. The limitation seems to go back at least as far as C= loudscape 5.1 but not as far back as Cloudscape 3.5 (which doesn't have= a RENAME TABLE command). I don't have access to the code archaeology f= or this limitation. Could someone with access to the code archaeology help = me understand the motivation for this limitation? I don't want to remov= e this limitation if it is going to cause some known edge-case to fail.

Thanks,
-Rick

--f46d041826f6082ddf04ff5c1243--