File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ class Agent(object):
4242 """
4343
4444 def payloadDirect (self , query ):
45+ query = self .cleanupPayload (query )
46+
4547 if query .startswith ("AND " ):
4648 query = query .replace ("AND " , "SELECT " , 1 )
4749 elif query .startswith (" UNION ALL " ):
Original file line number Diff line number Diff line change @@ -45,7 +45,10 @@ def connect(self):
4545
4646 def fetchall (self ):
4747 try :
48- return self .cursor .fetchall ()
48+ retVal = []
49+ for row in self .cursor .fetchall ():
50+ retVal .append (tuple (row ))
51+ return retVal
4952 except _sqlalchemy .exc .ProgrammingError , msg :
5053 logger .log (logging .WARN if conf .dbmsHandler else logging .DEBUG , "(remote) %s" % msg [1 ])
5154 return None
Original file line number Diff line number Diff line change @@ -224,7 +224,6 @@ def checkDbms(self):
224224 else :
225225 Backend .setVersionList ([">= 5.0.0" , "< 5.0.3" ])
226226
227- # For cases when information_schema is missing
228227 elif inject .checkBooleanExpression ("DATABASE() LIKE SCHEMA()" ):
229228 Backend .setVersion (">= 5.0.2" )
230229 setDbms ("%s 5" % DBMS .MYSQL )
You can’t perform that action at this time.
0 commit comments