Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 2196 invoked from network); 16 Aug 2005 23:32:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Aug 2005 23:32:07 -0000 Received: (qmail 97073 invoked by uid 500); 16 Aug 2005 23:32:02 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 96517 invoked by uid 500); 16 Aug 2005 23:31:57 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 96503 invoked by uid 99); 16 Aug 2005 23:31:57 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_FAIL,UPPERCASE_25_50 X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2005 16:31:56 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 1EF0DE2 for ; Wed, 17 Aug 2005 01:31:55 +0200 (CEST) Message-ID: <645743518.1124235115125.JavaMail.jira@ajax.apache.org> Date: Wed, 17 Aug 2005 01:31:55 +0200 (CEST) From: "Mike Matrigali (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-439) IDENTITY_VAL_LOCAL() returns null after INSERT INTO table VALUES(DEFAULT) In-Reply-To: <1686883128.1120585349364.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-439?page=all ] Mike Matrigali updated DERBY-439: --------------------------------- Component: SQL > IDENTITY_VAL_LOCAL() returns null after INSERT INTO table VALUES(DEFAULT) > ------------------------------------------------------------------------- > > Key: DERBY-439 > URL: http://issues.apache.org/jira/browse/DERBY-439 > Project: Derby > Type: Bug > Components: SQL > Versions: 10.0.2.1 > Environment: Mandriva 2005 Linux. Derby 10.0.2.1 > Reporter: Andy Jefferson > > I have a table as follows > CREATE TABLE MYTABLE > ( > MYTABLE_ID BIGINT NOT NULL generated always as identity (start with 1) > ) > and then I issue > INSERT INTO MYTABLE VALUES (DEFAULT); > followed by > VALUES IDENTITY_VAL_LOCAL(); > This returns null! > If instead my table was > CREATE TABLE MYTABLE > ( > MYTABLE_ID BIGINT NOT NULL generated always as identity (start with 1), > NAME VARCHAR(20) NULL > ) > and I then issue > INSERT INTO MYTABLE ("NAME") VALUES ("NEW NAME"); > followed by > VALUES IDENTITY_VAL_LOCAL(); > I get the value assigned to the identity column correctly. -- 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