Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 85958 invoked from network); 14 Mar 2008 09:53:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2008 09:53:02 -0000 Received: (qmail 68517 invoked by uid 500); 14 Mar 2008 09:53:00 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 68300 invoked by uid 500); 14 Mar 2008 09:52:59 -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 68290 invoked by uid 99); 14 Mar 2008 09:52:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2008 02:52:59 -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; Fri, 14 Mar 2008 09:52:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 82DBF234C099 for ; Fri, 14 Mar 2008 02:51:24 -0700 (PDT) Message-ID: <466007196.1205488284534.JavaMail.jira@brutus> Date: Fri, 14 Mar 2008 02:51:24 -0700 (PDT) From: "Anurag Shekhar (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3523) sql states (X0Y63, X0Y63, X0Y63.S) related to nulls in unique constraints are associated with wrong message texts In-Reply-To: <976084676.1205254246221.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-3523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anurag Shekhar updated DERBY-3523: ---------------------------------- Attachment: derby-3523v3.diff I have taken off the new method from standardException and moved the code to select mesage id inline derby-3523v3.diff. I don't any strong feeling about either of the approach. Based on discussion either v2 (with new method in StandardException) and v3 (inline message id selection) can be used. > sql states (X0Y63, X0Y63, X0Y63.S) related to nulls in unique constraints are associated with wrong message texts > ------------------------------------------------------------------------------------------------------------------ > > Key: DERBY-3523 > URL: https://issues.apache.org/jira/browse/DERBY-3523 > Project: Derby > Issue Type: Bug > Affects Versions: 10.4.0.0, 10.5.0.0 > Reporter: Anurag Shekhar > Assignee: Anurag Shekhar > Attachments: derby-3523v1.diff, derby-3523v2.diff, derby-3523v3.diff > > > There are three messages which after Derby-3330 checkin now giving wrong information. These are > 42831:'{0}' cannot be a column of a primary key or unique key because it can contain null values. > 42Z20:Column '{0}' cannot be made nullable. It is part of a primary key or unique constraint, which cannot have any null able columns. > X0Y63.S:The command on table '{0}' failed because null data was found in the primary key or unique constraint/index column(s). All columns in a primary or unique index key must not be null. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.