Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 77426 invoked from network); 21 Mar 2011 09:57:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Mar 2011 09:57:45 -0000 Received: (qmail 73544 invoked by uid 500); 21 Mar 2011 09:57:45 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 73499 invoked by uid 500); 21 Mar 2011 09:57:45 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 73492 invoked by uid 99); 21 Mar 2011 09:57:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Mar 2011 09:57:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Mon, 21 Mar 2011 09:57:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BC3C34016D1 for ; Mon, 21 Mar 2011 09:57:05 +0000 (UTC) Date: Mon, 21 Mar 2011 09:57:05 +0000 (UTC) From: "Thomas Mueller (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <762372084.272.1300701425767.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <85915511.265.1300701185907.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (JCR-2923) SQL2 parser: improved error message for ambiguous properties in joins 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/JCR-2923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Mueller resolved JCR-2923. --------------------------------- Resolution: Fixed > SQL2 parser: improved error message for ambiguous properties in joins > --------------------------------------------------------------------- > > Key: JCR-2923 > URL: https://issues.apache.org/jira/browse/JCR-2923 > Project: Jackrabbit Content Repository > Issue Type: Improvement > Components: jackrabbit-jcr-commons > Affects Versions: 2.0.0 > Reporter: Thomas Mueller > Assignee: Thomas Mueller > Priority: Minor > Fix For: 2.3.0 > > > For queries of the form: > select id from parent inner join child on parent.id=child.parentid > the SQL2 parser currently only returns a generic error message "This query result contains more than one selector". > The error message should point to the problematic token: > Query: select id(*)from parent inner join child on parent.id=child.parentid; expected: Need to specify the selector name for "id" because the query contains more than one selector. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira