|Oracle Call Interface Programmer's Guide
Release 2 (9.2)
Part Number A96584-01
OCI Relational Functions, 38 of 38
Gets the bind and indicator variable names.
sword OCIStmtGetBindInfo ( OCIStmt *stmtp, OCIError *errhp, ub4 size, ub4 startloc, sb4 *found, text *bvnp, ub1 bvnl, text *invp, ub1 inpl, ub1 dupl, OCIBind *hndl );
The statement handle prepared by
An error handle you can pass to
OCIErrorGet() for diagnostic information in the event of an error.
The number of elements in each array.
Position of the bind variable at which to start getting bind information.
found) gives the total number of bind variables in the statement irrespective of the start position. Positive value if the number of bind variables returned is less than the size provided, otherwise negative.
Array of pointers to hold bind variable names. Must be in UTF-16 if the environment is set in OCI_UTF16 mode.
Array to hold the length of the each
bvnp element. The length is in bytes.
Array of pointers to hold indicator variable names. Must be in UTF-16 if the environment is set in OCI_UTF16 mode.
Array of pointers to hold the length of the each
invp element. In number of bytes.
An array whose element value is 0 or 1 depending on whether the bind position is duplicate of another.
An array which returns the bind handle if binds have been done for the bind position. No handle is returned for duplicates.
This call returns information about bind variables after a statement has been prepared. This includes bind names, indicator names, and whether or not binds are duplicate binds. This call also returns an associated bind handle if there is one. The call sets the
found parameter to the total number of bind variables and not just the number of distinct bind variables.
This function does not include
SELECT INTO list variables, because they are not considered to be binds.
The statement must have been prepared with a call to
OCIStmtPrepare() prior to this call. The encoding setting in the statement handle will determine whether Unicode strings will be retrieved.
This call is processed locally.