Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 93780 invoked from network); 3 Nov 2006 23:58:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Nov 2006 23:58:40 -0000 Received: (qmail 48176 invoked by uid 500); 3 Nov 2006 23:58:50 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 48150 invoked by uid 500); 3 Nov 2006 23:58:50 -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 48141 invoked by uid 99); 3 Nov 2006 23:58:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Nov 2006 15:58:50 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Nov 2006 15:58:38 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9DE287142DB for ; Fri, 3 Nov 2006 15:58:18 -0800 (PST) Message-ID: <32986339.1162598298644.JavaMail.root@brutus> Date: Fri, 3 Nov 2006 15:58:18 -0800 (PST) From: "Bryan Pendleton (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-1490) Provide ALTER TABLE RENAME COLUMN functionality In-Reply-To: <14131261.1152375810009.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 [ http://issues.apache.org/jira/browse/DERBY-1490?page=all ] Bryan Pendleton updated DERBY-1490: ----------------------------------- Attachment: renameColumn_v3_after_review.diff Attached is renameColumn_v3_after_reviews.diff, an updated patch proposal. Thank you very much to all the reviewers; the comments were very helpful! The major difference between this patch and the previous one is that this patch includes only the RENAME COLUMN statement. The consensus seemed to be that there was no need to provide two statements that did the same thing, and the RENAME COLUMN statement feels more natural. I filed two issues for follow-on analysis: - DERBY-2041, to track the unexpected behavior I saw with triggers, - DERBY-2041, to track the need for updating documentation to describe the new features. The updated patch also includes several new tests as suggested by the reviewers, and addresses some whitespace and formatting problems caused by the fact that my default editor setup uses spaces, not tabs, while the sqlgrammar.jj file is still largely tab-based, so tab-based patches are preferable. The patch is updated to a recent trunk, so should apply cleanly. Reviewers, could you please let me know what you think of this latest patch? Thanks! > Provide ALTER TABLE RENAME COLUMN functionality > ----------------------------------------------- > > Key: DERBY-1490 > URL: http://issues.apache.org/jira/browse/DERBY-1490 > Project: Derby > Issue Type: New Feature > Components: Documentation, SQL > Affects Versions: 10.0.2.0, 10.0.2.1, 10.1.1.0, 10.2.1.6, 10.1.2.1, 10.1.3.1 > Reporter: Bryan Pendleton > Assigned To: Bryan Pendleton > Attachments: 1490_cannot_patch.jpg, derby1490_v1_needMoreTests.diff, renameColumn_v2_with_tests.diff, renameColumn_v3_after_review.diff > > > Provide a way to rename a column in an existing table. Possible syntax could be: > ALTER TABLE tablename RENAME COLUMN oldcolumn TO newcolumn; > Feature should properly handle the possibility that the column is currently used in constraints, views, indexes, triggers, etc. -- 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