Better dealing with MySQL vs HSQLDB

This commit is contained in:
Miroslav Stampar 2015-10-10 14:19:47 +02:00
parent 9641e84dd9
commit 51444276c0

View File

@ -169,7 +169,7 @@ class Fingerprint(GenericFingerprint):
infoMsg = "confirming %s" % DBMS.MYSQL
logger.info(infoMsg)
result = inject.checkBooleanExpression("USER() LIKE USER()")
result = inject.checkBooleanExpression("SESSION_USER() LIKE USER()")
if not result:
warnMsg = "the back-end DBMS is not %s" % DBMS.MYSQL
@ -177,14 +177,6 @@ class Fingerprint(GenericFingerprint):
return False
result = inject.checkBooleanExpression("ROUNDMAGIC(NULL) IS NULL")
if result:
warnMsg = "the back-end DBMS is not %s" % DBMS.MYSQL
logger.warn(warnMsg)
return False
# reading information_schema on some platforms is causing annoying timeout exits
# Reference: http://bugs.mysql.com/bug.php?id=15855