Determine control mode for query data

The mi_exec_prepared_statement() and mi_open_prepared_statement() functions specify the control mode for the data of a prepared query in their bit-mask control argument.

To determine the control mode, set the control argument as the following table shows.
Control mode Control argument
Text representation Zero (default)
Binary representation MI_BINARY
For mi_exec_prepared_statement(), MI_BINARY is the only valid control-flag constant for the control argument. Therefore, a default value of zero as the control argument indicates text representation of the data. The following mi_exec_prepared_statement() call specifies a control mode of binary representation:
mi_open_prepared_statement(stmt_desc, MI_BINARY, ...);
For mi_open_prepared_statement(), the control argument indicates the cursor characteristics in addition to the control mode. To specify a text representation, omit the MI_BINARY control-flag constant from the control argument. Including MI_BINARY in the control argument indicates that results are to be returned in binary representation. The following mi_open_prepared_statement() call specifies an update scroll cursor and a control mode of binary representation:
mi_open_prepared_statement(
   stmt_desc, 
   MI_BINARY + MI_SEND_SCROLL, 
   ...);