Connection.statementExecuteNonSelect
int statementExecuteNonSelect(gda.statement.Statement stmt, gda.set.Set params, out gda.set.Set lastInsertRow)Executes a non-selection statement on the given connection.
This function returns the number of rows affected by the execution of stmt, or -1 if an error occurred, or -2 if the connection's provider does not return the number of rows affected.
This function is just a convenience function around the [gda.connection.Connection.statementExecute] function. See the documentation of the [gda.connection.Connection.statementExecute] for information about the params list of parameters.
See [gda.connection.Connection.statementExecute] form more information about last_insert_row.
Parameters
stmt | a #GdaStatement object. |
params | a #GdaSet object (which can be obtained using [gda.statement.Statement.getParameters]), or null |
lastInsertRow | a place to store a new #GdaSet object which contains the values of the last inserted row, or null |
Returns
the number of rows affected (>=0) or -1 or -2
Throws
[ConnectionException]