I get a weird error when I try to filter a selectResults object after
it is already empty.

It can be reproduced like this:

    >>> sr = MyTable.select(false) # obviously empty
    >>> sr.filter(False).count()
    TypeError: 'bool' object is unsubscriptable

This is a weird one.  I build a lot of dynamic queries and I don't
check as I add filters if I have an empty select results.

Is this a bug?  If so, I can try to fix.

Matt


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to