Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 39096 invoked from network); 25 Feb 2008 21:19:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Feb 2008 21:19:40 -0000 Received: (qmail 87726 invoked by uid 500); 25 Feb 2008 21:19:35 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 87606 invoked by uid 500); 25 Feb 2008 21:19:34 -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 87589 invoked by uid 99); 25 Feb 2008 21:19:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2008 13:19:34 -0800 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2008 21:19:09 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 41401234C010 for ; Mon, 25 Feb 2008 13:18:51 -0800 (PST) Message-ID: <137033732.1203974331265.JavaMail.jira@brutus> Date: Mon, 25 Feb 2008 13:18:51 -0800 (PST) From: "Anurag Shekhar (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3456) Allow removing not null from collumns particpating in unique constraint. In-Reply-To: <994490859.1203771439645.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 [ https://issues.apache.org/jira/browse/DERBY-3456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anurag Shekhar updated DERBY-3456: ---------------------------------- Attachment: derby-3456v1.diff derby-3456v1.diff enables setting columns (if they are part of unique constraint) null able . If the backing index for the unique constraints are unique indexes (ie created before hard upgrade) it drops the index and recreates them with index type as duplicate and unique when not null. Setting column null able works only after hard upgrade. If the data base is running in soft upgrade mode setting the column null able will continue to throw exception. modified files java/engine/org/apache/derby/impl/sql/compile/ModifyColumnNode.java Check for Unique Constraint is now optional (only if the data dictionary version is not the latest one). java/engine/org/apache/derby/impl/sql/execute/DDLSingleTableConstantAction.java added a new method () to drop backing index and recreating with type set to non unique and unique when not null. Added code, while setting column to null able, to check if the column is participating in a unique constraint and if the unique constraint was created before hard upgrade (index type will be unique in this case) use the method in DDLSingleTableConstantAction to recreate the backing index. > Allow removing not null from collumns particpating in unique constraint. > ------------------------------------------------------------------------ > > Key: DERBY-3456 > URL: https://issues.apache.org/jira/browse/DERBY-3456 > Project: Derby > Issue Type: Sub-task > Components: SQL, Store > Affects Versions: 10.4.0.0 > Environment: all > Reporter: Anurag Shekhar > Assignee: Anurag Shekhar > Attachments: derby-3456v1.diff > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.