summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerebus1 <erebus@mail.ua>2016-06-05 12:12:02 +0300
committererebus1 <erebus@mail.ua>2016-06-05 12:12:02 +0300
commit5636093bf6e6e63bba3c9ac70ebe545a5422f390 (patch)
tree9668ae99a1eb9eaf314f35ebb6debc889839fd5d
parentf500bfee855e147323b753790b557e2fe06b83e2 (diff)
downloadsqlalchemy-pr/282.tar.gz
raise error on empty in_pr/282
-rw-r--r--lib/sqlalchemy/sql/default_comparator.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/default_comparator.py b/lib/sqlalchemy/sql/default_comparator.py
index d180dbc02..2a23326f4 100644
--- a/lib/sqlalchemy/sql/default_comparator.py
+++ b/lib/sqlalchemy/sql/default_comparator.py
@@ -146,6 +146,7 @@ def _in_impl(expr, op, seq_or_selectable, negate_op, **kw):
# appropriately, i.e. "not (x IN ())" should not return NULL
# values for x.
+ assert False, 'empty in'
util.warn('The IN-predicate on "%s" was invoked with an '
'empty sequence. This results in a '
'contradiction, which nonetheless can be '