The mi_typestring_to_id() function

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

Syntax

MI_TYPEID *mi_typestring_to_id(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_id() function converts the name of the data type in the null-terminated string that type_name references into a type identifier. For a list of SQL data type names, see the HCL OneDB™ DataBlade® API Programmer's Guide.

Return values

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