MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / execute

Method execute

plugins/dbms/postgresql/connector.py:52–65  ·  view source on GitHub ↗
(self, query)

Source from the content-addressed store, hash-verified

50 return None
51
52 def execute(self, query):
53 retVal = False
54
55 try:
56 self.cursor.execute(query)
57 retVal = True
58 except (psycopg2.OperationalError, psycopg2.ProgrammingError) as ex:
59 logger.warning(("(remote) '%s'" % getSafeExString(ex)).strip())
60 except psycopg2.InternalError as ex:
61 raise SqlmapConnectionException(getSafeExString(ex))
62
63 self.connector.commit()
64
65 return retVal
66
67 def select(self, query):
68 retVal = None

Callers 1

selectMethod · 0.95

Calls 3

getSafeExStringFunction · 0.90
commitMethod · 0.80

Tested by

no test coverage detected