mi_string* lld_sqlstate (error); mi_integer error
int* lld_sqlstate (int error);
On success, this function returns the SQL state value corresponding to the error code. On failure, returns NULL.