MCPcopy Create free account
hub / github.com/sqlmapproject/sqlmap / execute

Method execute

plugins/dbms/presto/connector.py:49–62  ·  view source on GitHub ↗
(self, query)

Source from the content-addressed store, hash-verified

47 return None
48
49 def execute(self, query):
50 retVal = False
51
52 try:
53 self.cursor.execute(query)
54 retVal = True
55 except (prestodb.exceptions.OperationalError, prestodb.exceptions.ProgrammingError) as ex:
56 logger.log(logging.WARN if conf.dbmsHandler else logging.DEBUG, "(remote) %s" % getSafeExString(ex))
57 except prestodb.exceptions.InternalError as ex:
58 raise SqlmapConnectionException(getSafeExString(ex))
59
60 self.connector.commit()
61
62 return retVal
63
64 def select(self, query):
65 retVal = None

Callers 1

selectMethod · 0.95

Calls 3

getSafeExStringFunction · 0.90
commitMethod · 0.80

Tested by

no test coverage detected