[Zope] Catalog wierdness?
Casey Duncan
casey@zope.com
Mon, 17 Mar 2003 11:06:12 -0500
Hi Mark,
There are known bugs in the BTree code in 2.5.1 that could be exposed on =
range=20
seaches. Just to rule this out, can you do a simple isolated test on Zope=
=20
2.6.1 that definitely fails on 2.5.1? If you still see this behavior ther=
e,=20
let me know and I will try to find out what's going on.
-Casey
On Sunday 16 March 2003 05:01 pm, Mark Gibson wrote:
> Using:
> Zope Version=20
> (Zope 2.5.1 (source release, python 2.1, linux2), python 2.1.3, linux2=
)=20
> Python Version=20
> 2.1.3 (#1, Apr 22 2002, 16:16:34) [GCC 2.96 20000731 (Red Hat Linux 7.=
1=20
2.96-85)]=20
>=20
> In the catalog, I have a FieldIndex that contains an integer.
> I want to select all objects where that number is 0 or less.
>=20
> objs=3DCatalog(number_times_sent=3D0 ,number_times_sent_usage=3D'range:=
max' )
>=20
> However, this returns all items, regardless of the value of=20
number_times_sent.
> If an object has number_times_sent to 2, and I do this call:
>=20
> objs=3D Catalog(number_times_sent=3D1 ,number_times_sent_usage=3D'range=
:max' )
>=20
> It works as expected, and that object isn't returned. Also, when=20
> number_times_sent is 0, the following does work.
>=20
> objs=3D Catalog(number_times_sent=3D0)
>=20
> Since I won't have a negative value, this does what I want. However,
> number_times_sent is variable, so it would be nice if 'range:max' worke=
d for=20
> zero.
>=20
> Is there any logical explanation? Bug? Am I doing something wrong?
>=20
> Thanks,
> Mark
>=20
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -=20
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>=20