fix for a bug reported by seyi.akin@gmail.com

This commit is contained in:
Miroslav Stampar
2011-06-14 08:40:25 +00:00
parent 8978fded03
commit 60ecf95383
3 changed files with 5 additions and 2 deletions

View File

@@ -217,7 +217,7 @@ class Enumeration(GenericEnumeration):
columns = {}
for name, type_ in zip(retVal[0]["%s.name" % randStr], retVal[0]["%s.usertype" % randStr]):
columns[name] = sybaseTypes[type_] if type_ else None
columns[name] = sybaseTypes.get(type_, type_)
table[tbl] = columns
kb.data.cachedColumns[conf.db] = table