desc
is the MI_ERROR_DESC that describes an SQL error or warning.
buf
is the buffer into which the message is copied.
buflen
is the maximum length of the buffer. It should be at least 6 bytes long; if not, an exception is raised.
Yes
MI_OK
The function was successful.
MI_ERROR
The function was not successful.