stmt
is a pointer to a prepared statement as generated by mi_prepare().
control
is one of the following flags:
Return binary results.
Cursor is sensitive (not currently supported).
Cursor is read only.
Cursor is scrollable.
are_binary
is set to 1 if the parameters are passed in binary mode.
1
n_params
is the number of entries in the nulls, lengths, and values arrays.
values
is an array of pointers to the statement parameters.
lengths
is an array of the lengths of the parameter values.
nulls
is an array that contains 1 for each null parameter and 0 for each non-null parameter.
0
types
is an array of pointer to the input parameters' types. If there are no parameters, this array can be NULL.
name
is a pointer to the name of the cursor. This cursor name must be unique. To use an internally-generated unique name for the cursor, specify NULL for the name argument.
retlen
is the length of the rettypes array. It must equal the number of columns returned by the statement or be 0 if no parameters exist.
rettypes
is an array of pointers to the type names to which the return values are cast. This array might be NULL if return values do not need to be cast.
Yes
MI_OK
The function was successful.
MI_ERROR
The function was not successful. The statement could not be opened.