MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / Decimal2Literal

Function Decimal2Literal

pymysql/converters.py:147–150  ·  view source on GitHub ↗
(o, d)

Source from the content-addressed store, hash-verified

145
146
147def Decimal2Literal(o, d):
148 if not o.is_finite():
149 raise ProgrammingError("%s can not be used with MySQL" % str(o).lower())
150 return format(o, "f")
151
152
153def _convert_second_fraction(s):

Callers

nothing calls this directly

Calls 1

ProgrammingErrorClass · 0.85

Tested by

no test coverage detected