MCPcopy Create free account
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 f"{self.__class__} {self.db!r}.{self.table_name!r}.{self.name!r}, type={self.type_code}, flags={self.flags:x}"

Callers 1

descriptionMethod · 0.95

Calls 1

getMethod · 0.80

Tested by

no test coverage detected