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

Method insert

lib/core/replication.py:72–81  ·  view source on GitHub ↗

This function is used for inserting row(s) into current table.

(self, values)

Source from the content-addressed store, hash-verified

70 raise SqlmapGenericException(errMsg)
71
72 def insert(self, values):
73 """
74 This function is used for inserting row(s) into current table.
75 """
76
77 if len(values) == len(self.columns):
78 self.execute('INSERT INTO "%s" VALUES (%s)' % (self.name, ','.join(['?'] * len(values))), safechardecode(values))
79 else:
80 errMsg = "wrong number of columns used in replicating insert"
81 raise SqlmapValueException(errMsg)
82
83 def execute(self, sql, parameters=None):
84 try:

Callers 15

pivotDumpTableFunction · 0.45
onReturnPressFunction · 0.45
runFunction · 0.45
populate_tabFunction · 0.45
setHandlerFunction · 0.45
startFunction · 0.45
checkSqlInjectionFunction · 0.45
queryPageMethod · 0.45
connectMethod · 0.45
dbTableValuesMethod · 0.45
_setTamperingFunctionsFunction · 0.45
_setPreprocessFunctionsFunction · 0.45

Calls 3

executeMethod · 0.95
safechardecodeFunction · 0.90

Tested by

no test coverage detected