summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql
diff options
context:
space:
mode:
authorjonathan vanasco <jonathan@2xlp.com>2020-10-28 15:58:55 -0400
committerjonathan vanasco <jonathan@2xlp.com>2020-10-30 11:59:47 -0400
commit580657f0680024980d4df286d018da626ed757e1 (patch)
tree5258af559d117c224f9d2b16ecf4f7a1b0de3ae9 /lib/sqlalchemy/sql
parent841eb216644202567ebddfc0badc51a3a35e98c3 (diff)
downloadsqlalchemy-580657f0680024980d4df286d018da626ed757e1.tar.gz
while working on #5435, I found some misses from the previous PR for #5429
Change-Id: I0be15f6234c74302734672450a3275add762bdb8
Diffstat (limited to 'lib/sqlalchemy/sql')
-rw-r--r--lib/sqlalchemy/sql/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/util.py b/lib/sqlalchemy/sql/util.py
index e4f7532be..1bea97318 100644
--- a/lib/sqlalchemy/sql/util.py
+++ b/lib/sqlalchemy/sql/util.py
@@ -599,14 +599,14 @@ def adapt_criterion_to_null(crit, nulls):
binary.left = binary.right
binary.right = Null()
binary.operator = operators.is_
- binary.negate = operators.isnot
+ binary.negate = operators.is_not
elif (
isinstance(binary.right, BindParameter)
and binary.right._identifying_key in nulls
):
binary.right = Null()
binary.operator = operators.is_
- binary.negate = operators.isnot
+ binary.negate = operators.is_not
return visitors.cloned_traverse(crit, {}, {"binary": visit_binary})