Home | Previous Page | Next Page   Function Descriptions >

mi_lo_specset_flags( )

The mi_lo_specset_flags( ) function sets the attributes flag for a smart large object.

Syntax

mi_integer mi_lo_specset_flags(LO_spec, flags)
   MI_LO_SPEC *LO_spec;
   mi_integer flags;
LO_spec
is a pointer to the LO-specification structure in which to save the flags value.
flags
is an integer value for the bit mask of the attributes flag for the smart large object.
Valid in Client LIBMI Application? Valid in User-Defined Routine?
Yes Yes

Usage

The mi_lo_specset_flags( ) function is the LO-specification accessor function that sets the attributes flag for a new smart large object. 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 set a particular attribute, you must use the bitwise OR operator (|) to mask the attributes flag, as the following code fragment shows:

create_flags = MI_LO_ATTR_LOG | MI_LO_ATTR_KEEP_LASTACCESS_TIME
mi_lo_specset_flags(LO_spec, create_flags)

Important:
Before you call mi_lo_specset_flags( ), you must initialize an LO-specification structure.

When you set the attributes flag with mi_lo_specset_flags( ), you override any column-level or system-specified attributes flag in the LO-specification structure. You then pass this LO-specification structure to a smart-large-object creation function (such as mi_lo_create( )) to provide the attributes flag as a user-supplied storage characteristic for a new smart large object.

Return Values

MI_OK
indicates that the function was successful.
MI_ERROR
indicates that the function was not successful.

Related Topics

See also the descriptions of mi_lo_copy( ), mi_lo_create( ), mi_lo_from_file( ), mi_lo_spec_free( ), mi_lo_spec_init( ), and mi_lo_specget_flags( ).

For more information on the attributes flag of a smart large object or on how to use the mi_lo_specset_flags( ) function, see the IBM Informix: DataBlade API Programmer's Guide.

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