The mi_typename_to_id() function

The mi_typename_to_id() function creates a type identifier for a data type, given the type name in LVARCHAR format.

Syntax

MI_TYPEID *mi_typename_to_id(conn, type_lvname)
   MI_CONNECTION *conn;
   mi_lvarchar *type_lvname;
conn
A pointer to a connection descriptor established by a previous call to mi_open(), mi_server_connect(), or mi_server_reconnect().
type_lvname
The name of the SQL data type, in LVARCHAR format.
Valid in client LIBMI application? Valid in user-defined routine?
Yes Yes

Usage

The mi_typename_to_id() function converts the name of the data type in the varying-length structure that type_lvname 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 of the type_lvname data type.
NULL
The function was not successful; a type identifier for type_lvname was not found.