The mi_lo_specset_def_open_flags() function
The mi_lo_specset_def_open_flags() function sets the default open-mode flag for a smart large object.
Syntax
mi_integer mi_lo_specset_def_open(LO_spec, def_open_flags)
MI_LO_SPEC *LO_spec;
mi_integer def_open_flags;
- LO_spec
- A pointer to the LO-specification structure in which to save the default open flags.
- def_open_flags
- An integer value that specifies the bit mask of the default open flags for the smart large object.
Valid in client LIBMI application? | Valid in user-defined routine? |
---|---|
Yes | Yes |
Usage
The mi_lo_specset_def_open_flags() function is the LO-specification accessor function that sets the default open flags for a new smart large object. The def_open_flags value is the bit mask that indicates which open flags to use when the mi_lo_open() opens the smart large object. The default open flags indicate how the mi_lo_open() function opens the smart large object when it does not include an open flag. To override the default open flags, you can specify an open mode as an argument to mi_lo_open().
For more information about the default open mode of a smart large object or about how to use the mi_lo_specset_def_open_flags() function, see the Informix® DataBlade® API Programmer's Guide.
Return values
- MI_OK
- The function was successful.
- MI_ERROR
- The function was not successful.