Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 29235 invoked from network); 9 Jul 2007 13:35:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jul 2007 13:35:26 -0000 Received: (qmail 5074 invoked by uid 500); 9 Jul 2007 13:35:28 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 4860 invoked by uid 500); 9 Jul 2007 13:35:28 -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 4849 invoked by uid 99); 9 Jul 2007 13:35:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jul 2007 06:35:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jul 2007 06:35:24 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BC46C714159 for ; Mon, 9 Jul 2007 06:35:04 -0700 (PDT) Message-ID: <14474412.1183988104767.JavaMail.jira@brutus> Date: Mon, 9 Jul 2007 06:35:04 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-2902) AS IDENTITY (START WITH -9223372036854775808) fails In-Reply-To: <8115364.1183643104687.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-2902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511118 ] Knut Anders Hatlen commented on DERBY-2902: ------------------------------------------- Hi Bryan, The patch looks good to me, but wouldn't the code be more readable if we replaced the if/else with return Long.parseLong(sign + longToken.image); ? > AS IDENTITY (START WITH -9223372036854775808) fails > --------------------------------------------------- > > Key: DERBY-2902 > URL: https://issues.apache.org/jira/browse/DERBY-2902 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.2.2.0 > Environment: MacTel 10.4.10 JVM 1.6.0-dp > Reporter: James Alan Shepherd > Assignee: Bryan Pendleton > Priority: Minor > Attachments: parseLong.diff > > > When creating a table > AS IDENTITY (START WITH -9223372036854775808) > fails but > AS IDENTITY (START WITH -9223372036854775807) > succeeds. > Guess this is a parsing SQL problem as the absolute value appears to be held in a long, which is not quite long enough at the positive end. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.