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

Method select

plugins/dbms/hsqldb/connector.py:75–89  ·  view source on GitHub ↗
(self, query)

Source from the content-addressed store, hash-verified

73 return retVal
74
75 def select(self, query):
76 retVal = None
77
78 upper_query = query.upper()
79
80 if query and not (upper_query.startswith("SELECT ") or upper_query.startswith("VALUES ")):
81 query = "VALUES %s" % query
82
83 if query and upper_query.startswith("SELECT ") and " FROM " not in upper_query:
84 query = "%s FROM (VALUES(0))" % query
85
86 self.cursor.execute(query)
87 retVal = self.cursor.fetchall()
88
89 return retVal

Callers

nothing calls this directly

Calls 2

executeMethod · 0.45
fetchallMethod · 0.45

Tested by

no test coverage detected