11 Jun 21:26
MyTable.select(False).filter(False).count() crashes!
Matthew Wilson <matt <at> tplus1.com>
2009-06-11 19:26:59 GMT
2009-06-11 19:26:59 GMT
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
RSS Feed