CS_CANCEL_CURRENT maps directly to dbcanquery. CS_CANCEL_CURRENT is equivalent to calling ct_fetch until it returns CS_END_DATA.
CS_CANCEL_CURRENT will:
Discard the current result set
Clear all bindings between the result items and program variables
Leave the next result set (if any) available, and leave the current command unaffected
Using CS_CANCEL_ALL or CS_CANCEL_ATTN will
cause a connection’s open cursors to enter an undefined
state. It is preferable to close a cursor rather than cancel a cursor open command. CS_CANCEL_CURRENT is
safe to use on a connection with open cursors.