statement_execute_non_select


Description:

public int statement_execute_non_select (Statement stmt, Set? @params = null, out Set? last_insert_row = null) throws Error

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 statement_execute function. See the documentation of the statement_execute for information about the params list of parameters.

See statement_execute form more information about last_insert_row.

Parameters:

this

a Connection object.

stmt

a Statement object.

last_insert_row

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

params

a Set object (which can be obtained using get_parameters), or null

Returns:

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