You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Alexander Klimetschek (JIRA)" <ji...@apache.org> on 2009/01/20 21:42:59 UTC
[jira] Reopened: (JCR-1146) Support comparison of properties in
queries (on both sides of comparison)
[ https://issues.apache.org/jira/browse/JCR-1146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Klimetschek reopened JCR-1146:
----------------------------------------
Ups, I was too fast in closing this - of course there should be an InvalidQueryException.
> 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 Content Repository
> Issue Type: Improvement
> Components: jackrabbit-core, 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.