summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
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
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')
-rw-r--r--lib/sqlalchemy/sql/util.py4
-rw-r--r--lib/sqlalchemy/testing/suite/test_select.py4
2 files changed, 4 insertions, 4 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})
diff --git a/lib/sqlalchemy/testing/suite/test_select.py b/lib/sqlalchemy/testing/suite/test_select.py
index d15fae3c4..954900f67 100644
--- a/lib/sqlalchemy/testing/suite/test_select.py
+++ b/lib/sqlalchemy/testing/suite/test_select.py
@@ -1367,7 +1367,7 @@ class IsOrIsNotDistinctFromTest(fixtures.TablesTest):
expected_row_count_for_is,
)
- expected_row_count_for_isnot = (
+ expected_row_count_for_is_not = (
1 if expected_row_count_for_is == 0 else 0
)
result = connection.execute(
@@ -1375,5 +1375,5 @@ class IsOrIsNotDistinctFromTest(fixtures.TablesTest):
).fetchall()
eq_(
len(result),
- expected_row_count_for_isnot,
+ expected_row_count_for_is_not,
)