diff --git a/plugins/dbms/hsqldb/fingerprint.py b/plugins/dbms/hsqldb/fingerprint.py index 5faa0331d..c76e0e716 100644 --- a/plugins/dbms/hsqldb/fingerprint.py +++ b/plugins/dbms/hsqldb/fingerprint.py @@ -104,7 +104,7 @@ class Fingerprint(GenericFingerprint): logger.info(infoMsg) # TODO This gets mangled in UNION queries because of the dummy table - result = inject.checkBooleanExpression("\"java.lang.Math.sqrt\"(1)=1") + result = inject.checkBooleanExpression("CASEWHEN(1=1,1,0)=1") if result: infoMsg = "confirming %s" % DBMS.HSQLDB @@ -144,3 +144,7 @@ class Fingerprint(GenericFingerprint): logger.warn(warnMsg) return False + + def getHostname(self): + warnMsg = "on HSQLDB it is not possible to enumerate the hostname" + logger.warn(warnMsg) diff --git a/xml/queries.xml b/xml/queries.xml index 6b74dea36..ac4239055 100644 --- a/xml/queries.xml +++ b/xml/queries.xml @@ -626,7 +626,6 @@ - @@ -648,16 +647,16 @@ - + - + - +