Support comparison of properties in queries (on both sides of comparison)
-------------------------------------------------------------------------
Key: JCR-1146
URL: https://issues.apache.org/jira/browse/JCR-1146
Project: Jackrabbit
Issue Type: Improvement
Components: query
Affects Versions: 1.3.1
Reporter: Amir Mistric
Currently Jackrabbit does not support having properties on both sides of a
comparison in a query.
For example, neither one of the following queries return results (and they
should) nor they throw an exception!!!
1.
/jcr:root/www-mysite-org//element(*,mgnl:content)[MetaData/@mgnl:activated='true'
and MetaData/@mgnl:lastmodified > MetaData/@mgnl:lastaction]
2.
/jcr:root/www-mysite-org//element(*,mgnl:content)[MetaData/@mgnl:activated='true'
and xs:dateTime(MetaData/@mgnl:lastmodified) >
xs:dateTime(MetaData/@mgnl:lastaction)]
3.
/jcr:root/www-mysite-org//element(*,mgnl:content)[MetaData/@mgnl:activated='true'
and MetaData/xs:dateTime(@mgnl:lastmodified) >
MetaData/xs:dateTime(@mgnl:lastaction)]
The problem is that one of the comparison fields has to be literal which is
very limiting...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.