----- Original Message -----
From: "Lennart Regebro" <[EMAIL PROTECTED]>
Sent: Thursday, May 02, 2002 10:48
Subject: [Zope-dev] range:max, date times and pluggableindexes

> In Zope 2.3.3 we did this with ZCatalog, on a field index:
>             query['effective_date'] = ['', DateTime.now()]
>             query['effective_date_usage'] = 'range:max'
> This returns all records where the effective_date is lower than todays
> OR the effective_date is an empty string.
> In Zope 2.5.1, the same code now returns *all* records. It seems like now
> suddenly comparing dates and an empty string always returns true.

Smells like a bug. Maybe try to use record-style parameters instead the
usage of old-style parameters (described in the Zope Book). If you can
provide a short testcase, please file a collector issue.


Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to