jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philipp Bunge (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-2328) PropertyValue constraint fails with implicit selectorName using JCR-SQL2
Date Fri, 25 Sep 2009 09:52:16 GMT

    [ https://issues.apache.org/jira/browse/JCR-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12759464#action_12759464
] 

Philipp Bunge commented on JCR-2328:
------------------------------------

Thanks for fixing so quickly!
I appreciate it.

> PropertyValue constraint fails with implicit selectorName using JCR-SQL2
> ------------------------------------------------------------------------
>
>                 Key: JCR-2328
>                 URL: https://issues.apache.org/jira/browse/JCR-2328
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: query
>    Affects Versions: 2.0-alpha11
>            Reporter: Philipp Bunge
>            Assignee: Thomas Mueller
>             Fix For: 2.0.0
>
>
> Compiling a JCR-SQL2 query involving a PropertyValue constraint using a qualified property
name fails if selectorName is not explicitly defined.
> The following query works:
> SELECT * FROM [my:thing] AS thing WHERE thing.[my:property] = 'abc'
> the following doesn't:
> SELECT * FROM [my:thing] AS thing WHERE [my:property] = 'abc'
> (the "AS thing" is unecessary here, I can leave it out with the same result).
> The second query results in an:
> javax.jcr.query.InvalidQueryException: Query:
> SELECT * FROM [my:thing] AS thing WHERE [(*)my:property] = 'abc';
> expected: NOT, (
> The spec final draft however states:
> PropertyValue ::= [selectorName'.'] propertyName
>    /* If only one selector exists in this query,
>       explicit specification of the selectorName is
>       optional */

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message