MimerExecute

Execute a statement that does not return a result set.

Statements that do not return a result set include data manipulation statements (INSERT, UPDATE, DELETE), assignments (SET) and procedure calls (CALL). (Statements that return a result set are handled using cursors. See Result set producing statements.)

Before calling MimerExecute, set all input parameters of the statement using data input routines. (See Data Input Routines.)

If this call returns successfully, any output parameters may be retrieved using data output routines. (See Data Output Routines.)

Parameters

int32_t MimerExecute (MimerStatement statementhandle)

statementhandle

in

A handle returned by MimerBeginStatement[C|8], identifying a prepared statement.

Returns

A negative value indicating an error, or zero if successful. A positive value indicates an update row count returned by the database.

Return value

Description

> 0

Success. Value indicates an update row count.

MIMER_SUCCESS

Success.

MIMER_OUTOFMEMORY

If not enough memory could be allocated.

MIMER_SEQUENCE_ERROR

If this routine is called on a statement which returns a result set.

MIMER_UNSET_PARAMETERS

All input parameters have not yet been set.

Other value < 0

Any of the server error codes listed in Return Codes.

Notes

This routine interacts with the database server.

Micro API compatible.