Sets a Universally unique identifier parameter. Only the SQL data type BUILTIN.UUID can be set using this function.
Parameters
MimerStatement statementhandle,
int16_t param_no,
const unsigned char uuid[16])
statementhandle |
in |
A handle returned by MimerBeginStatement[C|8], identifying a statement that have been executed. |
param_no |
in |
A number identifying the parameter. First parameter is 1. |
uuid |
in |
A pointer to a 16 byte buffer where the identifier to set is located. If this pointer is NULL, the SQL NULL value may be set. |
Returns
A negative value indicating an error or zero indicating success.
Return value |
Description |
---|---|
MIMER_SUCCESS |
Success. |
MIMER_CAST_VIOLATION |
If the referred database type was not of the BUILTIN.UUID type. |
MIMER_HANDLE_INVALID |
The statementhandle parameter was not recognized as a handle. |
MIMER_NONEXISTENT_COLUMN_PARAMETER |
The referenced parameter does not exist. |
MIMER_NULL_VIOLATION |
Cannot assign the null value to a non-nullable parameter. |
MIMER_OUTOFMEMORY |
If not enough memory could be allocated. |
MIMER_PARAMETER_NOT_INPUT |
The referenced parameter is not an input or input/output parameter, which is required when calling a data input routine. |
Notes
Micro API compatible.