Minor fix, way more to do for --search -C for MSSQL

This commit is contained in:
Bernardo Damele 2012-03-15 17:55:49 +00:00
parent 86c4650058
commit 48e8c978fb

View File

@ -259,7 +259,9 @@ class Enumeration(GenericEnumeration):
colCond = rootQuery.inband.condition colCond = rootQuery.inband.condition
colConsider, colCondParam = self.likeOrExact("column") colConsider, colCondParam = self.likeOrExact("column")
if not len(kb.data.cachedDbs): if conf.db is not None:
enumDbs = conf.db.split(",")
elif not len(kb.data.cachedDbs):
enumDbs = self.getDbs() enumDbs = self.getDbs()
else: else:
enumDbs = kb.data.cachedDbs enumDbs = kb.data.cachedDbs