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
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()
else:
enumDbs = kb.data.cachedDbs