The mi_typestring_to_typedesc() function

The mi_typestring_to_typedesc() function creates a type descriptor for a data type, given the type name as a null-terminated string.

Syntax

MI_TYPE_DESC *mi_typestring_to_typedesc(conn, type_name)
   MI_CONNECTION *conn;
   mi_string *type_name;
conn
A pointer to a connection descriptor established by a previous call to mi_open(), mi_server_connect(), or mi_server_reconnect().
type_name
The name of the SQL data type. It can be in the form owner.type_name or type_name.
Valid in client LIBMI application? Valid in user-defined routine?
Yes Yes

Usage

The mi_typestring_to_typedesc() function converts the name of the data type in the null-terminated string that type_name references into a type descriptor. For a list of SQL data type names, see the HCL OneDB™ DataBlade® API Programmer's Guide.

Return values

An MI_TYPE_DESC pointer
A pointer to the type descriptor for the type_name data type.
NULL
The function was not successful; the type_name data type was not found.