To notify the database server that the external library supports cancel processing, your external library must export the following function:
void extfn_cancel( void *cancel_handle );
cancel_handle A pointer to a variable to manipulate.
This function is called asynchronously by the database server whenever the currently executing SQL statement is canceled.
The function uses the cancel_handle to set a flag indicating to the external library functions that the SQL statement has been canceled.
If the function is not exported by the library, the database server assumes that cancel processing is not supported.
A typical implementation of this function follows:
void extfn_cancel( void *cancel_handle ) { *(short *)cancel_handle = 1; } |
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |