informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

mi_lo_release()

The mi_lo_release() function tells the database server that the resources that are associated with a temporary smart large object can be released.

Syntax

Usage

The mi_lo_release() function frees the LO handle that LO_hdl references. This function is a destructor function for the LO handle. It is useful for telling the database server when it is safe to release resources associated with temporary smart large objects. A temporary smart large object is one that has one or more LO handles, but none of these handles have been inserted into a table. Temporary smart large objects can occur in the following ways:

For example, the following query creates one smart large object for each row in the table1 table and sends each one to the client application:

The client LIBMI application can use the mi_lo_release() function to indicate to the database server when it finishes processing each of these smart large objects. Once you call this function on a temporary smart large object, the database server is free to release the resources at any time. Further use of the LO handle and any associated LO file descriptors is not guaranteed to work.

Use of this function on smart large objects that are not temporary does not cause any incorrect behavior. However, the call is expensive, and is not needed for permanent smart large objects.

Return Values

MI_OK indicates that the function was successful.
MI_ERROR indicates that the function was not successful.

Related Topics

For more information, see Freeing an LO Handle.


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved