Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 75470 invoked from network); 13 Sep 2005 18:24:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Sep 2005 18:24:01 -0000 Received: (qmail 6545 invoked by uid 500); 13 Sep 2005 18:23:59 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 5996 invoked by uid 500); 13 Sep 2005 18:23:57 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 5973 invoked by uid 99); 13 Sep 2005 18:23:56 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2005 11:23:55 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id A7C4D14A for ; Tue, 13 Sep 2005 20:23:54 +0200 (CEST) Message-ID: <1774581292.1126635834685.JavaMail.jira@ajax.apache.org> Date: Tue, 13 Sep 2005 20:23:54 +0200 (CEST) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-565) Misleading parser diagnostics Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Misleading parser diagnostics ----------------------------- Key: DERBY-565 URL: http://issues.apache.org/jira/browse/DERBY-565 Project: Derby Type: Bug 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. - 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