Query._statement boolean value is not defined
Issue #2199
resolved
In Query._no_statement_condition, self._statement is being checked for its boolean value without using "is not None". When self._statement is a ClauseElement, this breaks with a TypeError.
http://www.sqlalchemy.org/trac/browser/lib/sqlalchemy/orm/query.py?rev=7641%3A6723b52c44bc
To reproduce: 1. Create a Query and a Select object 2. query_obj.from_statement(select_obj).offset(123) 3. Raises TypeError in _no_statement_condition
This bug has been observed in 0.6.7, 0.6.8 and seems to be present in the default branch as well.
Comments (2)
-
repo owner -
repo owner - removed milestone
Removing milestone: 0.6.9 (automated comment)
- Log in to comment
cf7453e0019194256731a4cb10df50ac4256582f c4f279be4e551d6a0b8ae8c87e92aee9cd6445ea
wasn't covered....thanks for the bug report