|
The mi_lo_release() function tells the database server that the resources that are associated with a temporary smart large object can be released.
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.
MI_OK | indicates that the function was successful. |
MI_ERROR | indicates that the function was not successful. |
For more information, see Freeing an LO Handle.