Comment 1 for bug 179644

Revision history for this message
Anand Chitipothu (anandology) wrote : Re: [Bug 179644] iterbetter object is True even if it is empty when use sqlite3

On Jan 1, 2008 12:12 PM, realazy <email address hidden> wrote:
> Public bug reported:
>
> when using sqlite3 as db, the iterbetter object, which is web.query
> returned, is True even if it is empty.

Unfortunately, sqlite doesn't provide the number of rows in resultset,
so it is impossible to find the length without converting it to list.

But, i guess, it is misleading to return True always. Probably it
should raise an exception, when it can not determine the length.