Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 85161 invoked from network); 10 Jul 2009 21:35:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Jul 2009 21:35:27 -0000 Received: (qmail 10591 invoked by uid 500); 10 Jul 2009 21:35:37 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 10542 invoked by uid 500); 10 Jul 2009 21:35:37 -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 10533 invoked by uid 99); 10 Jul 2009 21:35:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2009 21:35:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2009 21:35:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D2E9E234C004 for ; Fri, 10 Jul 2009 14:35:14 -0700 (PDT) Message-ID: <733169349.1247261714849.JavaMail.jira@brutus> Date: Fri, 10 Jul 2009 14:35:14 -0700 (PDT) From: "Mike Matrigali (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-565) Misleading parser diagnostics In-Reply-To: <1774581292.1126635834685.JavaMail.jira@ajax.apache.org> 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-565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Matrigali updated DERBY-565: --------------------------------- Urgency: Normal Triaged July 10, 2009: assigned normal urgency. > Misleading parser diagnostics > ----------------------------- > > Key: DERBY-565 > URL: https://issues.apache.org/jira/browse/DERBY-565 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.1.1.0 > Reporter: Rick Hillegas > Priority: Minor > > Bryan Pendleton reports: > When I mistype 'join' as 'joing', the error message that I > get actually complains about the word 'left'. It ought to, > in my opinion, complain about the word 'joing', since that > is truly the word with the syntax error in it. > ij> select * from t1 left outer joing t2 on t1.c2=t2.c1; > ERROR 42X01: Syntax error: Encountered "left" at line 1, column 18. > I don't know if this is a PITA to fix or not, but I thought > I'd send it along anyway since it was so easy to reproduce. > ------------------------------------------------------- > This appears to be a problem with hand-coded lookahead logic. Although fixing this particular lookahead issue might be trivial, this is part of a larger problem since the parser is liberally peppered with similar hand-coded lookahead logic. Coming up with a general solution might involve some creativity. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.