Cursors > Binding Input Variables
 
Binding Input Variables
To bind input variables, you will use the member function IldRequest::bindParam.
This section differentiates the standard implementation of this function from its overloaded versions, and explains how to set parameter values. It is divided as follows:
*Standard Implementation
*Overloaded Version
*Setting Parameter Values
*Specific Considerations
Standard Implementation
This function can take up to eight arguments, from which only the first two ones are mandatory, the others being optional:
*The first argument is the chronological order of the variable in the statement, that is, in a left-to-right reading, its order of appearance in the statement string.
*The second argument is the Rogue Wave DB Link type of the data.
*The third argument is the data size in bytes. It is ignored for fixed-size types (such as integer, real, byte) but it can be used for all other type bindings. However, the error ILD_BAD_VARIABLE_SIZE is raised if the size passed is too small to handle the values.
*The fourth and fifth arguments are, respectively, a pointer to the data and a pointer to the null indicator.
*The sixth argument indicates the variable output status. It is needed only with Sybase on stored procedure calls.

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.