Skip to content

Commit

Permalink
Merge cf15b3e into f5294ff
Browse files Browse the repository at this point in the history
  • Loading branch information
nickpell committed Dec 21, 2018
2 parents f5294ff + cf15b3e commit d6f0181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commcare_export/writers.py
Expand Up @@ -333,7 +333,7 @@ def best_type_for(self, val):
# 2. MySQL cannot build an index on TEXT due to the lack of a field length, so we
# try to use VARCHAR when possible.
if len(val) < self.MAX_VARCHAR_LEN: # FIXME: Is 255 an interesting cutoff?
return sqlalchemy.Unicode( max(len(val), self.MIN_VARCHAR_LEN), collation=self.collation)
return sqlalchemy.Unicode(self.MAX_VARCHAR_LEN, collation=self.collation)
else:
return sqlalchemy.UnicodeText(collation=self.collation)
else:
Expand Down

0 comments on commit d6f0181

Please sign in to comment.