Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 23361 invoked from network); 5 Apr 2009 20:47:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Apr 2009 20:47:35 -0000 Received: (qmail 55516 invoked by uid 500); 5 Apr 2009 20:47:34 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 55445 invoked by uid 500); 5 Apr 2009 20:47: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 55437 invoked by uid 99); 5 Apr 2009 20:47:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Apr 2009 20:47:34 +0000 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; Sun, 05 Apr 2009 20:47:33 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4AF20234C003 for ; Sun, 5 Apr 2009 13:47:13 -0700 (PDT) Message-ID: <1006883955.1238964433291.JavaMail.jira@brutus> Date: Sun, 5 Apr 2009 13:47:13 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-4146) Cannot insert row when a generated column references an identity column MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Cannot insert row when a generated column references an identity column ----------------------------------------------------------------------- Key: DERBY-4146 URL: https://issues.apache.org/jira/browse/DERBY-4146 Project: Derby Issue Type: Bug Affects Versions: 10.5.1.0 Reporter: Knut Anders Hatlen ij> create table t (c1 int generated always as identity, c2 generated always as (c1)); 0 rows inserted/updated/deleted ij> insert into t values (default, default); ERROR 23502: Column 'C2' cannot accept a NULL value. Preferably, this should work. Alternatively, if it is not supposed to work, it should fail when the table is created and the error message should state that a generated column is not allowed to reference an identity column. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.