The mi_save_set_destroy() function

The mi_save_set_destroy() function destroys a save set and frees its resources.

Syntax

mi_integer mi_save_set_destroy(save_set)
   MI_SAVE_SET *save_set;
save_set
A pointer to an MI_SAVE_SET structure.
Valid in client LIBMI application? Valid in user-defined routine?
Yes Yes

Usage

The mi_save_set_destroy() function frees resources for the save set that save_set references. This function is the destructor function for a save set. This save set must have been previously created with the mi_save_set_create() function. It is an error to attempt to access rows in a save set that was destroyed.
Important: It is recommended that you explicitly deallocate save sets with mi_save_set_destroy() once you no longer need them. Otherwise, these save sets remain until the associated SQL statement ends or the session closes (whichever occurs first).

Return values

MI_OK
The function was successful.
MI_ERROR
The function was not successful.