Home | Previous Page | Next Page   Function Descriptions >

mi_column_typedesc( )

The mi_column_typedesc( ) function obtains the type descriptor of the specified column from a row descriptor.

Syntax

MI_TYPE_DESC *mi_column_typedesc(row_desc, column_id)
   MI_ROW_DESC *row_desc;
   mi_integer column_id;
row_desc
is a pointer to the row descriptor of the row that contains the column.
column_id
indicates the column identifier, which specifies the position of the column in the specified row descriptor. Column numbering follows C array-indexing conventions: the first column in the row is at position zero (0).
Valid in Client LIBMI Application? Valid in User-Defined Routine?
Yes Yes

Usage

A row descriptor can describe the structure of a row in a table or the structure of a row type. From the row descriptor that row_desc references, the mi_column_typedesc( ) function obtains the type descriptor of a column for either structure:

The type descriptor is a DataBlade API structure that provides information about a data type.

Return Values

An MI_TYPE_DESC pointer
is a pointer to the type descriptor for the specified column or field.
NULL
indicates that the function was not successful.

Related Topics

See also the descriptions of mi_column_count( ), mi_column_id( ), mi_column_name( ), mi_column_nullable( ), mi_column_precision( ), mi_column_scale( ), mi_column_type_id( ), mi_get_row_desc( ), and mi_get_row_desc_without_row( ).

For more information about row descriptors or about type descriptors, see the IBM Informix: DataBlade API Programmer's Guide.

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