[
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