Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 67173 invoked from network); 26 Mar 2008 10:01:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Mar 2008 10:01:36 -0000 Received: (qmail 38223 invoked by uid 500); 26 Mar 2008 10:01:35 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 38196 invoked by uid 500); 26 Mar 2008 10:01:35 -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 38187 invoked by uid 99); 26 Mar 2008 10:01:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2008 03:01:35 -0700 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; Wed, 26 Mar 2008 10:00:53 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EBC9E234C0AD for ; Wed, 26 Mar 2008 02:59:25 -0700 (PDT) Message-ID: <1222317281.1206525565964.JavaMail.jira@brutus> Date: Wed, 26 Mar 2008 02:59:25 -0700 (PDT) From: "Anurag Shekhar (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Assigned: (DERBY-3566) Alter column set data type not allowed in soft upgrade with unique constraint In-Reply-To: <1049367707.1206375324604.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-3566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anurag Shekhar reassigned DERBY-3566: ------------------------------------- Assignee: Anurag Shekhar > Alter column set data type not allowed in soft upgrade with unique constraint > ----------------------------------------------------------------------------- > > Key: DERBY-3566 > URL: https://issues.apache.org/jira/browse/DERBY-3566 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.4.0.0 > Reporter: Kathey Marsden > Assignee: Anurag Shekhar > Priority: Minor > > In 10.3 I can do this: > ij> create table t0 (i int not null, v varchar(1) not null, constraint uq unique(v,i)); > 0 rows inserted/updated/deleted > ij> alter table t0 alter v set data type varchar(2); > 0 rows inserted/updated/deleted > ij> > In 10.4 soft upgrade mode I cannot: > ij> create table t0 (i int not null, v varchar(1) not null, constraint uq unique(v,i)); > 0 rows inserted/updated/deleted > ij> alter table t0 alter v set data type varchar(2); > ERROR 42Z20: Column 'V' cannot be made nullable. It is part of a primary key or unique constraint, which cannot have any > nullable columns. > ij> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.