Home | Previous Page | Next Page   Function Descriptions >

mi_typestring_to_id( )

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
is a pointer to a connection descriptor established by a previous call to mi_open( ), mi_server_connect( ), or mi_server_reconnect( ).
type_name
is the name of the SQL data type. It can be in the form owner.type_name or simply 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 IBM Informix: DataBlade API Programmer's Guide.

Return Values

An MI_TYPEID pointer
is a pointer to the type identifier for the type_name data type.
NULL
indicates that the function was not successful; the type_name data type was not found.

Related Topics

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

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