Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 60ecf95

Browse files
committed
fix for a bug reported by [email protected]
1 parent 8978fde commit 60ecf95

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

doc/THANKS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
Santiago Accurso <[email protected]>
44
for reporting a bug
55

6+
Olu Akindeinde <[email protected]>
7+
for reporting a minor bug
8+
69
David Alvarez <[email protected]>
710
for reporting a bug
811

plugins/dbms/sybase/enumeration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def getColumns(self, onlyColNames=False):
217217
columns = {}
218218

219219
for name, type_ in zip(retVal[0]["%s.name" % randStr], retVal[0]["%s.usertype" % randStr]):
220-
columns[name] = sybaseTypes[type_] if type_ else None
220+
columns[name] = sybaseTypes.get(type_, type_)
221221

222222
table[tbl] = columns
223223
kb.data.cachedColumns[conf.db] = table

plugins/generic/enumeration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,7 @@ def getColumns(self, onlyColNames=False):
11981198
colType = inject.getValue(query, inband=False, error=False)
11991199

12001200
if Backend.isDbms(DBMS.FIREBIRD):
1201-
colType = firebirdTypes[colType] if colType in firebirdTypes else colType
1201+
colType = firebirdTypes.get(colType, colType)
12021202

12031203
column = safeSQLIdentificatorNaming(column)
12041204
columns[column] = colType

0 commit comments

Comments
 (0)