CODBCStmt.SetStmtParamBindOffsetPtrmethod
Sets an SQLUINTEGER value that points to an offset added to pointers to change binding of dynamic parameters.
Syntax
FUNCTION SetStmtParamBindOffsetPtr (BYVAL dwAttr AS DWORD) AS SQLRETURN
Parameters
| Name | Description | |
|---|---|---|
dwAttr | Offset value that points to an offset added to pointers to change binding of dynamic parameters. |
Return value
SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR, or SQL_INVALID_HANDLE.
Description
Sets an SQLUINTEGER value that points to an offset added to pointers to change binding of dynamic parameters.
Remarks
If this field is non-null, the driver dereferences the pointer, adds the dereferenced value to each of the deferred fields in the descriptor record (SQL_DESC_DATA_PTR, SQL_DESC_INDICATOR_PTR, and SQL_DESC_OCTET_LENGTH_PTR), and uses the new pointer values when binding. It is set to null by default.
The bind offset is always added directly to the SQL_DESC_DATA_PTR, SQL_DESC_INDICATOR_PTR, and SQL_DESC_OCTET_LENGTH_PTR fields. If the offset is changed to a different value, the new value is still added directly to the value in the descriptor field. The new offset is not added to the field value plus any earlier offsets.
Setting this statement attribute sets the SQL_DESC_BIND_OFFSET_PTR field in the APD header.
Reference
- Include file
CODBCStmt.inc - Defined in AfxNova/COdbcStmt.inc:1731
- Documented in Databases/ODBC Classes/CODBCStmt Class.md
- Topic: CODBCStmt Class