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

mi_lo_specget_flags()

The mi_lo_specget_flags() function obtains from an LO-specification structure the attributes flag for a smart large object.

Syntax

Usage

The mi_lo_specget_flags() function is the LO-specification accessor function that returns the attributes flag from a set of storage characteristics. The attributes flag provides the following information about a smart large object:

Constants for these attributes are masked together into the single attributes-flag value. Therefore, to obtain a particular attribute, you must use the bitwise AND operator (&) to mask the attributes flag, as the following code fragment shows:

Important: Before you call mi_lo_specget_flags(), you must put storage characteristics into an LO-specification structure.

You can use any of the following functions to initialize the LO-specification structure:

The mi_lo_specget_flags() function obtains the current value for the attributes flag from the LO-specification structure that LO_spec references.

Return Values

>=0 is the bit mask for the attributes flags from the LO-specification structure that LO_spec references.
MI_ERROR indicates that the function was not successful; the LO-specification structure might be invalid.

Related Topics

See the descriptions of the following functions: mi_lo_colinfo_by_ids(), mi_lo_colinfo_by_name(), mi_lo_spec_free(), mi_lo_spec_init(), mi_lo_specset_flags(), and mi_lo_stat_cspec().

For more information on the attributes flag of a smart large object, see Storage Characteristics. For information on how to use the mi_lo_specget_flags() function, see The LO-Specification Structure, and Defining User-Specified Storage Characteristics.


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