Session parameters
The parameter-information descriptor, MI_PARAMETER_INFO,
allows you to set the following session parameters for the client
LIBMI application:
- Disables invocation of callbacks
- Enables checking of pointers
Unlike most DataBlade
API structures,
the parameter-information descriptor is not an opaque C data structure.
To access session-parameter information, you must directly access
the fields of a parameter-information descriptor that you allocate.
The following table shows the fields in the MI_PARAMETER_INFO structure.
Field | Data type | Description |
---|---|---|
callbacks_enabled | mi_integer | Indicates whether callbacks are enabled:
|
pointer_checks_enabled | mi_integer | Indicates whether pointers (such as MI_ROW pointers)
that the client LIBMI application passes to the database server are
checked to ensure that they are within the heap space of the process:
|
The milib.h header file defines the MI_PARAMETER_INFO structure.
Before you establish a connection, you can determine which
of the following session parameters to use:
- The system-default session parameters
- Default session parameters that you specify