MCPcopy
hub / github.com/django/django / Ord

Class Ord

django/db/models/functions/text.py:221–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219
220
221class Ord(Transform):
222 function = "ASCII"
223 lookup_name = "ord"
224 output_field = IntegerField()
225
226 def as_mysql(self, compiler, connection, **extra_context):
227 return super().as_sql(compiler, connection, function="ORD", **extra_context)
228
229 def as_sqlite(self, compiler, connection, **extra_context):
230 return super().as_sql(compiler, connection, function="UNICODE", **extra_context)
231
232
233class Repeat(Func):

Callers 2

test_transformMethod · 0.90
test_basicMethod · 0.90

Calls 1

IntegerFieldClass · 0.90

Tested by 2

test_transformMethod · 0.72
test_basicMethod · 0.72