The am_close function:
- Deallocates user-data memory that am_open allocated
with a PER_STATEMENT duration
- Calls mi_file_close(), mi_lo_close(),
or one of the DataBlade API functions that copies smart-large-object data
to a file
Important:
Do not call the DataBlade API mi_close() function
to free a database connection handle that you open (in the am_open purpose function)
with mi_open(). Because the database connection
has a PER_COMMAND duration, the database server frees the handle before
it calls the am_close purpose function.