minor fix

This commit is contained in:
Miroslav Stampar 2010-11-04 22:00:14 +00:00
parent d7dbf814a0
commit c8fe2fa8d8

View File

@ -1260,21 +1260,22 @@ class Enumeration:
kb.data.cachedDbs = [] kb.data.cachedDbs = []
kb.data.cachedTables = self.getTables() kb.data.cachedTables = self.getTables()
if isinstance(kb.data.cachedTables, list): if kb.data.cachedTables:
kb.data.cachedTables = { None : kb.data.cachedTables } if isinstance(kb.data.cachedTables, list):
kb.data.cachedTables = { None : kb.data.cachedTables }
for db, tables in kb.data.cachedTables.items(): for db, tables in kb.data.cachedTables.items():
conf.db = db conf.db = db
for table in tables: for table in tables:
conf.tbl = table conf.tbl = table
kb.data.cachedColumns = {} kb.data.cachedColumns = {}
kb.data.dumpedTable = {} kb.data.dumpedTable = {}
data = self.dumpTable() data = self.dumpTable()
if data: if data:
conf.dumper.dbTableValues(data) conf.dumper.dbTableValues(data)
def dumpFoundColumn(self, dbs, foundCols, colConsider): def dumpFoundColumn(self, dbs, foundCols, colConsider):
if not dbs: if not dbs: