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})
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(
).fetchall()
eq_(
len(result),
- expected_row_count_for_isnot,
+ expected_row_count_for_is_not,
)
)
is_(
- connection.scalar(select(cast(true().isnot(true()), Boolean))),
+ connection.scalar(select(cast(true().is_not(true()), Boolean))),
False,
)