MCPcopy
hub / github.com/django/django / as_oracle

Method as_oracle

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

Source from the content-addressed store, hash-verified

24 return "(%s) %%%% 3 = %s" % (lhs, rhs), params
25
26 def as_oracle(self, compiler, connection):
27 lhs, lhs_params = self.process_lhs(compiler, connection)
28 rhs, rhs_params = self.process_rhs(compiler, connection)
29 params = (*lhs_params, *rhs_params)
30 return "mod(%s, 3) = %s" % (lhs, rhs), params
31
32
33class Div3Transform(models.Transform):

Callers

nothing calls this directly

Calls 2

process_lhsMethod · 0.45
process_rhsMethod · 0.45

Tested by

no test coverage detected