Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 34764 invoked from network); 14 Feb 2005 14:52:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Feb 2005 14:52:52 -0000 Received: (qmail 12099 invoked by uid 500); 14 Feb 2005 14:52:48 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 12046 invoked by uid 500); 14 Feb 2005 14:52:48 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Delivered-To: moderator for derby-user@db.apache.org Received: (qmail 81863 invoked by uid 99); 14 Feb 2005 14:35:34 -0000 X-ASF-Spam-Status: No, hits=1.1 required=10.0 tests=FORGED_RCVD_HELO,NO_REAL_NAME,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (hermes.apache.org: transitioning domain of michaelbaranov@mail.ru does not designate 195.209.41.194 as permitted sender) Date: Mon, 14 Feb 2005 16:34:59 +0200 From: michaelbaranov@mail.ru X-Mailer: The Bat! (v3.0) Professional Reply-To: michaelbaranov@mail.ru X-Priority: 3 (Normal) Message-ID: <1123980353.20050214163459@mail.ru> To: derby-user@db.apache.org Subject: IDENTITY_VAL_LOCAL MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Greetings! I'm experiencing a problem using the IDENTITY_VAL_LOCAL function. Any query with this function fails with an SQLException with message: Unexpected token: IDENTITY_VAL_LOCAL in statement ........ I have the identity column in one of my tables, on which I successfully perform single-record inserts. Well, it seems it just doesn't even parse! I'm really upset about it. I have to use a workaround like: SELECT MAX(TABLE_ID) FROM MY_TABLE; instead of IDENTITY_VAL_LOCAL(). Can anyone help? I'm using: JRE 1.4.2 Apache DERBY v.1.7.3 Thanks! Michael.