Home | Previous Page | Next Page   Function Descriptions >

mi_typename_to_typedesc( )

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

Syntax

MI_TYPE_DESC *mi_typename_to_typedesc(conn, type_lvname)
   MI_CONNECTION *conn;
   mi_lvarchar *type_lvname;
conn
is a pointer to a connection descriptor established by a previous call to mi_open( ), mi_server_connect( ), or mi_server_reconnect( ).
type_lvname
is 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_typedesc( ) function converts the name of the data type in the varying-length structure that type_lvname references into a type descriptor. For a list of SQL data type names, see the IBM Informix: DataBlade API Programmer's Guide.

Return Values

An MI_TYPE_DESC pointer
is a pointer to the type descriptor for the type_lvname data type.
NULL
indicates that the function was not successful; the type_lvname data type was not found.

Related Topics

See also the descriptions of mi_type_typedesc( ), mi_typename_to_id( ), and mi_typestring_to_typedesc( ).

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]