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

Method as_oracle

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

Source from the content-addressed store, hash-verified

144 tolerance = 0.05
145
146 def as_oracle(self, compiler, connection, **extra_context):
147 tolerance = Value(
148 self._handle_param(
149 self.extra.get("tolerance", self.tolerance),
150 "tolerance",
151 NUMERIC_TYPES,
152 )
153 )
154 clone = self.copy()
155 clone.set_source_expressions([*self.get_source_expressions(), tolerance])
156 return clone.as_sql(compiler, connection, **extra_context)
157
158
159class Area(OracleToleranceMixin, GeoFunc):

Callers

nothing calls this directly

Calls 7

ValueClass · 0.90
_handle_paramMethod · 0.80
getMethod · 0.45
copyMethod · 0.45
as_sqlMethod · 0.45

Tested by

no test coverage detected