diff --git a/sqlalchemy_firebird/base.py b/sqlalchemy_firebird/base.py index f74399e..981104b 100644 --- a/sqlalchemy_firebird/base.py +++ b/sqlalchemy_firebird/base.py @@ -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}"