MCPcopy
hub / github.com/PyMySQL/PyMySQL / get_column_length

Method get_column_length

pymysql/protocol.py:269–273  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

267 )
268
269 def get_column_length(self):
270 if self.type_code == FIELD_TYPE.VAR_STRING:
271 mblen = MBLENGTH.get(self.charsetnr, 1)
272 return self.length // mblen
273 return self.length
274
275 def __str__(self):
276 return "{} {!r}.{!r}.{!r}, type={}, flags={:x}".format(

Callers 1

descriptionMethod · 0.95

Calls 1

getMethod · 0.80

Tested by

no test coverage detected