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.
Table 1. Fields in the parameter-information descriptor
Field Data type Description
callbacks_enabled mi_integer Indicates whether callbacks are enabled:
  • A value of 1 indicates that callbacks are enabled.
  • A value of 0 indicates that callbacks are disabled.
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:
  • A value of 1 indicates that pointers are checked.
  • A value of 0 indicates that pointers are not checked.

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