jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Date comparison queries
Date Mon, 03 Jul 2006 11:48:14 GMT
Hi David,

David Kennedy wrote:
> Is the <= operator working correctly for dates in query?  The following 
> testcase compares 2 dates and I'd expect <= to succeed, but it fails.  The 
>> = succeeds though.  Am I misinterpreting the query?  Anybody else seen 
> this?

this is because jackrabbit does not coerce values for those two 
operators. you have to use the xs:dataTime() constructor:

/jcr:root//*[@testDate <= xs:dateTime('1972-02-01T02:02:02.002+00:00')]

regards
  marcel

Mime
View raw message