Skip to content

Commit

Permalink
Minor consistency update
Browse files Browse the repository at this point in the history
  • Loading branch information
stamparm committed Jan 14, 2016
1 parent 66eaac8 commit 6fef294
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions lib/core/dicts.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@
from lib.core.settings import HSQLDB_ALIASES

FIREBIRD_TYPES = {
"261": "BLOB",
"14": "CHAR",
"40": "CSTRING",
"11": "D_FLOAT",
"27": "DOUBLE",
"10": "FLOAT",
"16": "INT64",
"8": "INTEGER",
"9": "QUAD",
"7": "SMALLINT",
"12": "DATE",
"13": "TIME",
"35": "TIMESTAMP",
"37": "VARCHAR",
261: "BLOB",
14: "CHAR",
40: "CSTRING",
11: "D_FLOAT",
27: "DOUBLE",
10: "FLOAT",
16: "INT64",
8: "INTEGER",
9: "QUAD",
7: "SMALLINT",
12: "DATE",
13: "TIME",
35: "TIMESTAMP",
37: "VARCHAR",
}

SYBASE_TYPES = {
Expand Down
2 changes: 1 addition & 1 deletion plugins/generic/databases.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ def getColumns(self, onlyColNames=False, colTuple=None, bruteForce=None, dumpMod
columns[name] = None
else:
if Backend.isDbms(DBMS.FIREBIRD):
columnData[1] = FIREBIRD_TYPES.get(columnData[1], columnData[1])
columnData[1] = FIREBIRD_TYPES.get(int(columnData[1]) if isinstance(columnData[1], basestring) and columnData[1].isdigit() else columnData[1], columnData[1])

columns[name] = columnData[1]

Expand Down

0 comments on commit 6fef294

Please sign in to comment.