preventing case duplicates for --common-tables (as some DBMSes have case sensitive table names we can't just use them all with the same case)

This commit is contained in:
Miroslav Stampar 2011-04-10 21:38:08 +00:00
parent d0cef21d9c
commit e6c50df4f9

View File

@ -152,7 +152,12 @@ def tableExists(tableFile, regex=None):
warnMsg = "no table found"
logger.warn(warnMsg)
else:
items = set()
for item in retVal:
if item.lower() in items:
continue
else:
items.add(item.lower())
if not kb.data.cachedTables.has_key(conf.db):
kb.data.cachedTables[conf.db] = [item]
else: