summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sqlalchemy/databases/firebird.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/sqlalchemy/databases/firebird.py b/lib/sqlalchemy/databases/firebird.py
index 098759d18..9f9dcd634 100644
--- a/lib/sqlalchemy/databases/firebird.py
+++ b/lib/sqlalchemy/databases/firebird.py
@@ -187,14 +187,20 @@ class FBString(sqltypes.String):
"""Handle ``VARCHAR(length)`` datatype."""
def get_col_spec(self):
- return "VARCHAR(%(length)s)" % {'length' : self.length}
+ if self.length:
+ return "VARCHAR(%(length)s)" % {'length' : self.length}
+ else:
+ return "BLOB SUB_TYPE 1"
class FBChar(sqltypes.CHAR):
"""Handle ``CHAR(length)`` datatype."""
def get_col_spec(self):
- return "CHAR(%(length)s)" % {'length' : self.length}
+ if length:
+ return "CHAR(%(length)s)" % {'length' : self.length}
+ else:
+ return "BLOB SUB_TYPE 1"
class FBBinary(sqltypes.Binary):