Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 28615 invoked from network); 8 Jul 2008 05:39:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jul 2008 05:39:23 -0000 Received: (qmail 7531 invoked by uid 500); 8 Jul 2008 05:39:23 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 7499 invoked by uid 500); 8 Jul 2008 05:39:23 -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 7488 invoked by uid 99); 8 Jul 2008 05:39:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jul 2008 22:39:23 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2008 05:38:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9517E234C159 for ; Mon, 7 Jul 2008 22:38:31 -0700 (PDT) Message-ID: <125741120.1215495511609.JavaMail.jira@brutus> Date: Mon, 7 Jul 2008 22:38:31 -0700 (PDT) From: "Michael Neale (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-1673) Date comparitons are backwards in Queries In-Reply-To: <1059580011.1215494551727.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Neale updated JCR-1673: ------------------------------- Description: Imagine there is a node with jcr:created of: 2008-07-08T15:10:07.125+10:00 The following query: SELECT ... FROM .... WHERE jcr:created < '2009-07-08T15:10:07.125+10:00' should return it, but it doesn't. However, if you put: SELECT ... FROM .... WHERE jcr:created > '2009-07-08T15:10:07.125+10:00' then it does return it. Whoops. was: Imagine there is a node with jcr:created of: 2008-07-08T15:10:07.125+10:00 The following query: SELECT ... FROM .... WHERE jcr:created < '2008-07-09T14:55:29.774+10:00' should return it, but it doesn't. However, if you put: SELECT ... FROM .... WHERE jcr:created > '2008-07-09T14:55:29.774+10:00' then it does return it. Whoops. Summary: Date comparitons are backwards in Queries (was: Date comparitons are backwards in SQL query) > Date comparitons are backwards in Queries > ----------------------------------------- > > Key: JCR-1673 > URL: https://issues.apache.org/jira/browse/JCR-1673 > Project: Jackrabbit > Issue Type: Bug > Components: query > Affects Versions: core 1.4.1 > Reporter: Michael Neale > Priority: Critical > > Imagine there is a node with jcr:created of: > 2008-07-08T15:10:07.125+10:00 > The following query: > SELECT ... FROM .... WHERE jcr:created < '2009-07-08T15:10:07.125+10:00' > should return it, but it doesn't. However, if you put: > SELECT ... FROM .... WHERE jcr:created > '2009-07-08T15:10:07.125+10:00' > then it does return it. Whoops. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.