Initial commit for #3283 (fixing H2 misidentification with PgSQL and/or HSQLDB)

This commit is contained in:
Miroslav Stampar
2018-10-16 08:02:38 +02:00
parent 9f6e04b141
commit fb95ab8c17
4 changed files with 12 additions and 5 deletions

View File

@@ -106,6 +106,13 @@ class Fingerprint(GenericFingerprint):
return False
else:
result = inject.checkBooleanExpression("ZERO() IS 0") # Note: check for H2 DBMS (sharing majority of same functions)
if result:
warnMsg = "the back-end DBMS is not %s" % DBMS.HSQLDB
logger.warn(warnMsg)
return False
kb.data.has_information_schema = True
Backend.setVersion(">= 1.7.2")
setDbms("%s 1.7.2" % DBMS.HSQLDB)