Minor fixes once more

This commit is contained in:
Bernardo Damele 2011-02-10 11:34:16 +00:00
parent d0ddaee3c8
commit a2c20acf94
3 changed files with 13 additions and 0 deletions

View File

@ -157,6 +157,9 @@ class Enumeration(GenericEnumeration):
values = [ values ]
for foundTbl in values:
if foundTbl is None:
continue
foundTbls[db].append(foundTbl)
else:
infoMsg = "fetching number of table"

View File

@ -211,6 +211,9 @@ class Enumeration(GenericEnumeration):
values = [ values ]
for foundTbl in values:
if foundTbl is None:
continue
if foundTbl not in dbs[db]:
dbs[db][foundTbl] = {}

View File

@ -1649,6 +1649,9 @@ class Enumeration:
values = [ values ]
for foundDb, foundTbl in values:
if foundDb is None or foundTbl is None:
continue
if foundDb in foundTbls:
foundTbls[foundDb].append(foundTbl)
else:
@ -1682,6 +1685,7 @@ class Enumeration:
query += exclDbsQuery
query = agent.limitQuery(index, query)
foundDb = inject.getValue(query, inband=False, error=False)
if foundDb not in foundTbls:
foundTbls[foundDb] = []
@ -1799,6 +1803,9 @@ class Enumeration:
values = [ values ]
for foundDb, foundTbl in values:
if foundDb is None or foundTbl is None:
continue
if foundDb not in dbs:
dbs[foundDb] = {}