jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] Created: (JCR-1688) Query parser builds invalid parse tree
Date Wed, 23 Jul 2008 08:43:33 GMT
Query parser builds invalid parse tree

                 Key: JCR-1688
                 URL: https://issues.apache.org/jira/browse/JCR-1688
             Project: Jackrabbit
          Issue Type: Bug
          Components: jackrabbit-spi-commons
            Reporter: Michael Dürig
            Priority: Minor

Calling org.apache.jackrabbit.spi.commons.query.QueryParser.parse on 

SELECT prop1 FROM nt:unstructured WHERE prop1 IS NOT NULL ORDER BY prop1 ASC 

results in the following parse tree

+ Select properties: {}prop1
 + PathQueryNode
   + LocationStepQueryNode:  NodeTest=* Descendants=true Index=NONE
     + RelationQueryNode: Op: NOT NULL Prop=@{}prop1 Type=STRING Value=%
     + NodeTypeQueryNode:  Prop={http://www.jcp.org/jcr/1.0}primaryType Value={http://www.jcp.org/jcr/nt/1.0}unstructured
 + OrderQueryNode
   {}prop1 asc=true

The RelationQueryNode should not have a second operand since the NOT NULL operator is unary.

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

View raw message