The mi_get_default_connection_info() function
The mi_get_default_connection_info() function populates a connection-information descriptor with the default connection parameters.
Syntax
mi_integer mi_get_default_connection_info(conn_info)
MI_CONNECTION_INFO *conn_info;
- conn_info
- A pointer to a user-allocated connection-information descriptor in which to store the default connection parameters.
Valid in client LIBMI application? | Valid in user-defined routine? |
---|---|
Yes | Yes |
Usage
The mi_get_default_connection_info() function retrieves default connection parameters into the connection-information descriptor (MI_CONNECTION_INFO structure) that conn_info references. The connection parameters include the name of the database server and a GLS locale.
For more information about GLS locales, see the HCL OneDB™ GLS User's Guide.
If
no default value exists for a particular field, the mi_get_default_connection_info() function
sets string fields to a NULL-valued pointer and integer fields to 0
.
When mi_get_default_connection_info() is the first DataBlade® API function in a client LIBMI application or a user-defined routine, it also initializes the DataBlade API.
For a description of the connection-information descriptor, more information about how to use the connection-information descriptor, or more information about ways to interact with the session environment, see the HCL OneDB DataBlade API Programmer's Guide.
Return values
- MI_OK
- The function was successful.
- MI_ERROR
- The function was not successful.