Download Informix CLI Programmer`s Manual, Version 2.5

Transcript
SQLSetStmtOption
The format of information set with vParam depends on the specified fOption.
SQLSetStmtOption accepts option information in one of two different
formats: a null-terminated character string or a 32-bit integer value. The
format is noted in the option description. This format applies to the information returned for each option in SQLGetStmtOption. Character strings
pointed to by the vParam argument of SQLSetStmtOption have a maximum
length of SQL_MAX_OPTION_STRING_LENGTH bytes (excluding the nulltermination byte).
fOption
vParam Contents
SQL_ASYNC_ENABLE
UNSUPPORTED
INFORMIX-CLI does not support this option. The default is set to
SQL_BIND_TYPE
A 32-bit integer value that sets the binding orientation to be used when
SQLExtendedFetch is called on the associated hstmt. Column-wise binding is
selected by supplying the defined constant SQL_BIND_BY_COLUMN for the
argument vParam. Row-wise binding is selected by supplying a value for
vParam specifying the length of a structure or an instance of a buffer into which
result columns will be bound.
SQL_ASYNC_ENABLE_OFF..
The length specified in vParam must include space for all of the bound columns
and any padding of the structure or buffer to ensure that when the address of
a bound column is incremented with the specified length, the result will point
to the beginning of the same column in the next row. When using the sizeof
operator with structures or unions in ANSI C, this behavior is guaranteed.
Column-wise binding is the default binding orientation for
SQLExtendedFetch.
(1 of 5)
INFORMIX-CLI Function Reference 13-289