informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

mi_type_qualifier()

The mi_type_qualifier() function obtains the qualifier of a data type from its type descriptor.

Syntax

Usage

The mi_type_qualifier() function obtains the data type qualifier from the type descriptor that type_desc references. The qualifier is the number of time increments to store for a date and/or time data type: DATETIME and INTERVAL. If you call mi_type_qualifier() on some other data type, the function returns -1.

This function returns an encoded integer value that the database server uses internally to represent a qualifier. You can use the qualifier constants and macros (such as TU_START and TU_END) to use this encoded value.

Return Values

>=0 is the encoded integer qualifier of the data type in the type_desc type descriptor.
MI_ERROR indicates that the function was not successful.

Related Topics

See the descriptions of the following functions: mi_type_align(), mi_type_byvalue(), mi_type_element_typedesc(), mi_type_full_name(), mi_type_length(), mi_type_maxlength(), mi_type_owner(), mi_type_precision(), mi_type_scale(), mi_type_typedesc(), and mi_type_typename().

For information on type-descriptor accessor functions, see Type Descriptors. For information on qualifiers, see Chapter 4, Using Date and Time Data Types.


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved