more update for ms access

This commit is contained in:
Miroslav Stampar 2010-11-02 11:06:47 +00:00
parent 6ad8bbfc8e
commit 9d2c81baa9

View File

@ -700,11 +700,21 @@ class Enumeration:
return kb.data.cachedDbs
def getTables(self):
bruteForce = False
if kb.dbms == "MySQL" and not kb.data.has_information_schema:
errMsg = "information_schema not available, "
errMsg += "back-end DBMS is MySQL < 5.0"
logger.error(errMsg)
bruteForce = True
elif kb.dbms == "Microsoft Access":
errMsg = "cannot retrieve table names, "
errMsg += "back-end DBMS is Access"
logger.error(errMsg)
bruteForce = True
if bruteForce:
message = "do you want to use common table existance check? [Y/n/q]"
test = readInput(message, default="Y")