jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JCR-2923) SQL2 parser: improved error message for ambiguous properties in joins
Date Mon, 21 Mar 2011 09:53:05 GMT
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
            Reporter: Thomas Mueller


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

Mime
View raw message