diff options
author | erebus1 <erebus@mail.ua> | 2016-06-05 12:12:02 +0300 |
---|---|---|
committer | erebus1 <erebus@mail.ua> | 2016-06-05 12:12:02 +0300 |
commit | 5636093bf6e6e63bba3c9ac70ebe545a5422f390 (patch) | |
tree | 9668ae99a1eb9eaf314f35ebb6debc889839fd5d | |
parent | f500bfee855e147323b753790b557e2fe06b83e2 (diff) | |
download | sqlalchemy-pr/282.tar.gz |
raise error on empty in_pr/282
-rw-r--r-- | lib/sqlalchemy/sql/default_comparator.py | 1 |
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 ' |