Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5144427

Browse files
committed
Better dealing with MySQL vs HSQLDB
1 parent 9641e84 commit 5144427

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

plugins/dbms/mysql/fingerprint.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -169,22 +169,14 @@ def checkDbms(self):
169169
infoMsg = "confirming %s" % DBMS.MYSQL
170170
logger.info(infoMsg)
171171

172-
result = inject.checkBooleanExpression("USER() LIKE USER()")
172+
result = inject.checkBooleanExpression("SESSION_USER() LIKE USER()")
173173

174174
if not result:
175175
warnMsg = "the back-end DBMS is not %s" % DBMS.MYSQL
176176
logger.warn(warnMsg)
177177

178178
return False
179179

180-
result = inject.checkBooleanExpression("ROUNDMAGIC(NULL) IS NULL")
181-
182-
if result:
183-
warnMsg = "the back-end DBMS is not %s" % DBMS.MYSQL
184-
logger.warn(warnMsg)
185-
186-
return False
187-
188180
# reading information_schema on some platforms is causing annoying timeout exits
189181
# Reference: http://bugs.mysql.com/bug.php?id=15855
190182

0 commit comments

Comments
 (0)