Cancel the current database operation.
void Ns_PdDbCancel(void *handle);
This function cancels the current database operation. If the cancel operation was successful, this function should call Ns_PdSendString with OK_STATUS. On failure, the function should use Ns_PdSendString to return an error string.
/* Things italicized would be your DBMS-specific structures and calls. */ void Ns_PdDbCancel(void *handle) { DBMSState *state = (DBMSState *) handle; Ns_PdLog(Trace, "cancel:"); if (DBMSCancel(state) == NS_ERROR) { Ns_PdSendException(state->exceptionCode, state->exceptionMsg); } else { Ns_PdSendString(OK_STATUS); } }