MCPcopy
hub / github.com/django/django / as_sql

Method as_sql

tests/custom_lookups/tests.py:257–263  ·  view source on GitHub ↗
(self, compiler, connection)

Source from the content-addressed store, hash-verified

255 lookup_name = "ne"
256
257 def as_sql(self, compiler, connection):
258 lhs, lhs_params = self.process_lhs(compiler, connection)
259 rhs, rhs_params = self.process_rhs(compiler, connection)
260 # Although combining via (*lhs_params, *rhs_params) would be
261 # more resilient, the "simple" way works too.
262 params = lhs_params + rhs_params
263 return "%s <> %s" % (lhs, rhs), params
264
265 author = Author.objects.create(name="Isabella")
266

Callers

nothing calls this directly

Calls 2

process_lhsMethod · 0.45
process_rhsMethod · 0.45

Tested by

no test coverage detected