summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES2
-rw-r--r--lib/sqlalchemy/databases/firebird.py3
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 193025ab2..1c13273d9 100644
--- a/CHANGES
+++ b/CHANGES
@@ -16,6 +16,8 @@
- mysql
- support for column-level CHARACTER SET and COLLATE declarations,
as well as ASCII, UNICODE, NATIONAL and BINARY shorthand.
+- firebird
+ - set max identifier length to 31
-extensions
- new association proxy implementation, implementing complete
proxies to list, dict and set-based relation collections
diff --git a/lib/sqlalchemy/databases/firebird.py b/lib/sqlalchemy/databases/firebird.py
index d05b40650..0f55c856c 100644
--- a/lib/sqlalchemy/databases/firebird.py
+++ b/lib/sqlalchemy/databases/firebird.py
@@ -154,6 +154,9 @@ class FBDialect(ansisql.ANSIDialect):
def preparer(self):
return FBIdentifierPreparer(self)
+ def max_identifier_length(self):
+ return 31
+
def has_table(self, connection, table_name, schema=None):
tblqry = """
SELECT count(*)