Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 15595 invoked from network); 4 Oct 2006 16:35:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Oct 2006 16:35:39 -0000 Received: (qmail 22448 invoked by uid 500); 4 Oct 2006 16:35:36 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 22416 invoked by uid 500); 4 Oct 2006 16:35:36 -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 22363 invoked by uid 99); 4 Oct 2006 16:35:36 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Oct 2006 09:35:35 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:41194] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 36/02-17684-4D2E3254 for ; Wed, 04 Oct 2006 09:35:32 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E8F5F7142D7 for ; Wed, 4 Oct 2006 09:35:21 -0700 (PDT) Message-ID: <16880814.1159979721951.JavaMail.root@brutus> Date: Wed, 4 Oct 2006 09:35:21 -0700 (PDT) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-1918) INCREMENT of IDENTITY column described as allowing a value of zero in reference manual In-Reply-To: <301878.1159895839811.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1918?page=comments#action_12439890 ] Dag H. Wanvik commented on DERBY-1918: -------------------------------------- This refman section also contains a somewhat mystifying reference to ConnectionInfo, which seems to be a carry-over from the way things were done in Cloudscape prior to the existence of IDENTITY_LOCAL_VAL: > When an insert happens within a triggered-SQL-statement, the value > inserted by the triggered-SQL-statement into the identity column is > available from ConnectionInfo only within the trigger code.... ************* What is the status of ConnectionInfo? It seems to have been part of the public API at one time? This is the only place ConnectionInfo is ever mentioned in the docs as far as I can see.. The paragraph should probably be reworded or removed. I'll file a new issue if people agree. > INCREMENT of IDENTITY column described as allowing a value of zero in reference manual > -------------------------------------------------------------------------------------- > > Key: DERBY-1918 > URL: http://issues.apache.org/jira/browse/DERBY-1918 > Project: Derby > Issue Type: Bug > Components: Documentation > Affects Versions: 10.2.1.6, 10.3.0.0, 10.1.3.1, 10.2.2.0 > Reporter: Dag H. Wanvik > Assigned To: Dag H. Wanvik > Priority: Trivial > Fix For: 10.3.0.0 > > Attachments: derby1918.diff, derby1918.stat > > > In the description of how INCREMENT work with IDENTITY columns, th > reference manual is out of step with the implementation in the following respect > (quote from http://db.apache.org/derby/docs/10.2/ref/rrefsqlj37836.html): > > By default, the initial value of an identity column is 1, and the > > amount of the increment is 1. You can specify non-default values for > > both the initial value and the interval amount when you define the > > column with the key words STARTS WITH and INCREMENT BY. And if you > > specify a negative number for the increment value, Derby decrements > > the value with each insert. If this value is 0, or positive, Derby > ****************** > > increments the value with each insert. > In fact, the implementation does not allow a value of zero, but gives > error 42Z21 (LANG_AI_INVALID_INCREMENT): > ij> create table f (i int generated by default as identity (start with 1, increment by 0), j int); > ERROR 42Z21: Invalid increment specified for identity for column 'I'. Increment cannot be zero. -- 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