Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere External Function API » External function prototypes

 

extfn_cancel method

To notify the database server that the external library supports cancel processing, your external library must export the following function:

Syntax
void extfn_cancel( void *cancel_handle );
Parameters
  • cancel_handle   A pointer to a variable to manipulate.

Remarks

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;
}
See also