The mi_lo_specget_def_open_flags() function
The mi_lo_specget_def_open_flags() function obtains from an LO-specification structure the default open-mode flag for a smart large object.
Syntax
mi_integer mi_lo_specget_def_open(LO_spec)
MI_LO_SPEC *LO_spec;
- LO_spec
- A pointer to the LO-specification structure from which to obtain the default open flags.
Valid in client LIBMI application? | Valid in user-defined routine? |
---|---|
Yes | Yes |
Usage
The mi_lo_specget_def_open_flags() function
obtains the current value for the default open-mode flag from the
LO-specification structure that LO_spec references. This default
open-mode flag is the bit mask that indicates which open mode the mi_lo_open() function
uses when it opens the smart large object but does not specify an
open-mode flag. To override the default open-mode flag, you can specify
an open mode as an argument to mi_lo_open().
Important: Before you call mi_lo_specget_def_open_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_colinfo_by_ids() or mi_lo_colinfo_by_name() function puts storage characteristics that are associated with a particular CLOB or BLOB column in an LO-specification structure.
- The mi_lo_stat_cspec() function puts storage characteristics of an existing smart large object in an LO-specification.
- The mi_lo_specget_def_open_flags() function sets the default open flags in an LO-specification structure.
For more information about the default open mode of a smart large object or about how to use the mi_lo_specget_def_open_flags() function, see the Informix® DataBlade® API Programmer's Guide.
Return values
- MI_OK
- The bit-mask value of the default open flags for the smart large object that LO_spec references.
- MI_ERROR
- The function was not successful.