You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Thomas Mueller (JIRA)" <ji...@apache.org> on 2011/03/21 10:57:05 UTC

[jira] [Resolved] (JCR-2923) SQL2 parser: improved error message for ambiguous properties in joins

     [ 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