The lld_sqlstate() function

This function translates integer error codes into their corresponding SQL states.

Syntax

API
mi_string* lld_sqlstate (error);
   mi_integer                    error
ESQL/C
int* lld_sqlstate (int error);
error
An error code.

Return codes

On success, this function returns the SQL state value corresponding to the error code. On failure, returns NULL.
Important: This function returns a pointer to a constant, not to an allocated memory location.