|
The mi_get_connection_option() function returns information about the database of the current connection.
The mi_get_connection_option() function puts information about the connection attribute that conn specifies in the location that result_ptr references.
The following table lists the valid values for conn_option and the associated possible values that result_ptr references.
This function copies this value into the buffer that result_ptr references. The function allocates memory for the result in the current memory duration. When you no longer need this result, free this memory.
MI_OK | indicates that the function was successful. |
MI_ERROR | indicates that the function was not successful. |
The mi_get_connection_option() function raises an exception for the following conditions: