bug fix (--tables --columns)

This commit is contained in:
Miroslav Stampar 2011-07-12 23:27:47 +00:00
parent 5c162efbd8
commit 9c694ce3ec

View File

@ -1006,7 +1006,10 @@ class Enumeration:
self.getTables() self.getTables()
if len(kb.data.cachedTables) > 0: if len(kb.data.cachedTables) > 0:
tblList = kb.data.cachedTables.values() if conf.db in kb.data.cachedTables:
tblList = kb.data.cachedTables[conf.db]
else:
tblList = kb.data.cachedTables.values()
if isinstance(tblList[0], (set, tuple, list)): if isinstance(tblList[0], (set, tuple, list)):
tblList = tblList[0] tblList = tblList[0]