diff --git a/lib/core/common.py b/lib/core/common.py index 21f687c15..61453bd53 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -429,12 +429,7 @@ class Backend: @staticmethod def isDbmsWithin(aliases): - if Backend.getDbms() is not None: - return Backend.getDbms().lower() in aliases - elif Backend.getIdentifiedDbms() is not None: - return Backend.getIdentifiedDbms().lower() in aliases - else: - return False + return Backend.getDbms() is not None and Backend.getDbms().lower() in aliases @staticmethod def isVersion(version): diff --git a/plugins/dbms/oracle/fingerprint.py b/plugins/dbms/oracle/fingerprint.py index 5e754f40c..d2215c5ca 100644 --- a/plugins/dbms/oracle/fingerprint.py +++ b/plugins/dbms/oracle/fingerprint.py @@ -63,6 +63,10 @@ class Fingerprint(GenericFingerprint): return value def checkDbms(self): + print "Backend.getDbms():", Backend.getDbms() + print "Backend.isDbmsWithin(ORACLE_ALIASES):", Backend.isDbmsWithin(ORACLE_ALIASES) + print "conf.dbms:", conf.dbms + if not conf.extensiveFp and (Backend.isDbmsWithin(ORACLE_ALIASES) or conf.dbms in ORACLE_ALIASES): setDbms(DBMS.ORACLE)