Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion sqlalchemy_firebird/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,11 @@ def _render_string_type(self, type_, name, length_override=None):
charset = fb_types.NATIONAL_CHARSET
collation = None

text = text + (length and "(%d)" % length or "")
if length == 'NONE':
length = 0
text = str(text + (length and "(%d)" % length))
else:
text = text + (length and "(%d)" % length or "")

if charset is not None:
text += f" CHARACTER SET {charset}"
Expand Down