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.
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.