isDbmsWithin() must stay like this, no getIdentifiedDbms() in there

This commit is contained in:
Bernardo Damele 2011-05-03 14:13:45 +00:00
parent 742b0ef76e
commit c58dc4a6d8
2 changed files with 5 additions and 6 deletions

View File

@ -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):

View File

@ -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)