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

Method as_oracle

django/contrib/gis/db/models/functions.py:464–466  ·  view source on GitHub ↗
(self, compiler, connection, **extra_context)

Source from the content-addressed store, hash-verified

462 output_field = BooleanField()
463
464 def as_oracle(self, compiler, connection, **extra_context):
465 sql, params = super().as_oracle(compiler, connection, **extra_context)
466 return "CASE %s WHEN 'TRUE' THEN 1 ELSE 0 END" % sql, params
467
468
469class Length(DistanceResultMixin, OracleToleranceMixin, GeoFunc):

Callers

nothing calls this directly

Calls 1

as_oracleMethod · 0.45

Tested by

no test coverage detected