Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 18658 invoked from network); 27 Sep 2007 15:07:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Sep 2007 15:07:15 -0000 Received: (qmail 38061 invoked by uid 500); 27 Sep 2007 15:07:04 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 38038 invoked by uid 500); 27 Sep 2007 15:07:04 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 38022 invoked by uid 99); 27 Sep 2007 15:07:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2007 08:07:04 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2007 15:09:32 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C44D2714201 for ; Thu, 27 Sep 2007 08:06:50 -0700 (PDT) Message-ID: <124746.1190905610772.JavaMail.jira@brutus> Date: Thu, 27 Sep 2007 08:06:50 -0700 (PDT) From: "Amir Mistric (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Created: (JCR-1146) Support comparison of properties in queries (on both sides of comparison) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.