Allocating and binding a row or collection buffer
When you retrieve a row or collection, the database server puts the row or collection into a buffer that is local to your HCL Informix® ODBC Driver application.
To allocate and bind a row or collection buffer:
- Call ifx_rc_create() to allocate the buffer.
- Call SQLBindCol() to bind the buffer handle to the database column.
- Execute a SELECT statement to transfer the row or collection data to the local buffer.
- Use the row or collection buffer.
- Call ifx_rc_free() to deallocate the buffer.