Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DE0397F12 for ; Fri, 5 Aug 2011 02:41:54 +0000 (UTC) Received: (qmail 39216 invoked by uid 500); 5 Aug 2011 02:41:54 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 39184 invoked by uid 500); 5 Aug 2011 02:41:52 -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 39164 invoked by uid 99); 5 Aug 2011 02:41:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2011 02:41:51 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2011 02:41:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1CDDBA9A2F for ; Fri, 5 Aug 2011 02:41:27 +0000 (UTC) Date: Fri, 5 Aug 2011 02:41:27 +0000 (UTC) From: "Jayaram Subramanian (JIRA)" To: derby-dev@db.apache.org Message-ID: <1117172053.10324.1312512087114.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1338795515.2514.1308054348932.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (DERBY-5276) Reference manual has wrong length for BIGINT columns in system tables 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 [ https://issues.apache.org/jira/browse/DERBY-5276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jayaram Subramanian reassigned DERBY-5276: ------------------------------------------ Assignee: Jayaram Subramanian > Reference manual has wrong length for BIGINT columns in system tables > --------------------------------------------------------------------- > > Key: DERBY-5276 > URL: https://issues.apache.org/jira/browse/DERBY-5276 > Project: Derby > Issue Type: Bug > Components: Documentation > Affects Versions: 10.9.0.0 > Reporter: Knut Anders Hatlen > Assignee: Jayaram Subramanian > Priority: Minor > > The description of the SYSCOLUMNS table at http://db.apache.org/derby/docs/dev/ref/rrefsistabs22441.html says that the BIGINT columns AUTOINCREMENTVALUE, AUTOINCREMENTSTART and AUTOINCREMENTINC have length 19. The maximum length of a BIGINT is 20 (when including the sign for negative values). Here's an example that shows that these columns can hold values whose length is 20: > ij> create table t(x bigint not null generated always as identity (start with -1234567890123456789, increment by -1234567890123456789)); > 0 rows inserted/updated/deleted > ij> select autoincrementvalue, autoincrementstart, autoincrementinc from sys.syscolumns where columnname='X'; > AUTOINCREMENTVALUE |AUTOINCREMENTSTART |AUTOINCREMENTINC > -------------------------------------------------------------- > -1234567890123456789|-1234567890123456789|-1234567890123456789 > 1 row selected > Other places where BIGINT columns are listed with length 19: > SYSCONGLOMERATES - http://db.apache.org/derby/docs/dev/ref/rrefsistabs39391.html > SYSFILES - http://db.apache.org/derby/docs/dev/ref/rrefsistabs40972.html > SYSSEQUENCES - http://db.apache.org/derby/docs/dev/ref/rrefsistabssyssequences.html > SYSXPLAIN_RESULTSET_TIMINGS - http://db.apache.org/derby/docs/dev/ref/rrefsysxplain_resultset_timings.html > SYSXPLAIN_STATEMENT_TIMINGS - http://db.apache.org/derby/docs/dev/ref/rrefsysxplain_statement_timings.html > SYSCS_DIAG.SPACE_TABLE - http://db.apache.org/derby/docs/dev/ref/rrefsyscsdiagtables.html > I haven't verified if negative values are allowed in all of these columns. If they are only allowed to hold non-negative values, should we keep the value 19? Or should we change all to 20 for consistency? I'm assuming that "length" in these tables refers to the display size of the columns. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira