Issue #68 invalid

Changeset b82b9f9942bb breaks SQLAlchemy query collections

Anonymous created an issue

<<changeset b82b9f9942bb>>

Since the query is converted to a list before being sliced, list() tries to call getitem from the _SQLAlchemyQuery instance with indices until it raises a IndexError (because there is no iter). However, because getitem only accepts arguments from the type slice, it fails with: {{{ Exception: getitem without slicing not supported }}}

But converting a query to a list before it is being sliced is a bad idea i think, because then all items will be fetched from the database (--> no limit/offset).

Comments (1)

  1. Log in to comment