MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / visit_not_in_op_binary

Method visit_not_in_op_binary

lib/sqlalchemy/sql/compiler.py:3371–3377  ·  view source on GitHub ↗
(self, binary, operator, **kw)

Source from the content-addressed store, hash-verified

3369 )
3370
3371 def visit_not_in_op_binary(self, binary, operator, **kw):
3372 # The brackets are required in the NOT IN operation because the empty
3373 # case is handled using the form "(col NOT IN (null) OR 1 = 1)".
3374 # The presence of the OR makes the brackets required.
3375 return "(%s)" % self._generate_generic_binary(
3376 binary, OPERATORS[operator], **kw
3377 )
3378
3379 def visit_empty_set_op_expr(self, type_, expand_op, **kw):
3380 if expand_op is operators.not_in_op:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected