Connection.statementExecuteNonSelect

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.

class Connection
int
statementExecuteNonSelect

Parameters

stmt gda.statement.Statement

a #GdaStatement object.

params gda.set.Set

a #GdaSet object (which can be obtained using gda.statement.Statement.getParameters), or null

lastInsertRow gda.set.Set

a place to store a new #GdaSet object which contains the values of the last inserted row, or null

Return Value

Type: int

the number of rows affected (>=0) or -1 or -2

Throws