Beispiel #1
0
 def get_column_length(self):
     if self.type_code == FIELD_TYPE.VAR_STRING:
         mblen = MBLENGTH.get(self.charsetnr, 1)
         return self.length // mblen
     return self.length
Beispiel #2
0
 def get_column_length(self):
     if self.type_code == FIELD_TYPE.VAR_STRING:
         mblen = MBLENGTH.get(self.charsetnr, 1)
         return self.length // mblen
     return self.length