]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- calling expr.in_([]), i.e. with an empty list, emits a warning
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 29 Dec 2009 23:20:48 +0000 (23:20 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 29 Dec 2009 23:20:48 +0000 (23:20 +0000)
commitd732e7bf261504f34c9b9d5049a9875633c3e4b3
treeef497b8dad9036a7a8b1e8c230870555010d8b0f
parent8c3c2ea508894bc3e18c1df26364a74a4f68107a
- calling expr.in_([]), i.e. with an empty list, emits a warning
before issuing the usual "expr != expr" clause.  The
"expr != expr" can be very expensive, and it's preferred
that the user not issue in_() if the list is empty,
instead simply not querying, or modifying the criterion
as appropriate for more complex situations.
[ticket:1628]
CHANGES
lib/sqlalchemy/sql/expression.py
test/sql/test_query.py
test/sql/test_select.py