A smart large object remains open until it is freed in either of the following ways:
Once you finish the operations on the smart large object, you can close it explicitly with the mi_lo_close( ) function. This function frees the resources associated with the LO file descriptor and LO handle so that they can be reallocated to other structures that your program needs. In addition, the LO file descriptor can be reassigned to another smart large object.
When you close a smart large object, you release any share-mode or update-mode locks on that object. However, you do not release exclusive locks until the end of the transaction. For more information, see Locking Modes.
If you do not explicitly close a smart large object, the database server closes it automatically at the end of the session. For information on the syntax of the mi_lo_close( ) function, see the IBM Informix: DataBlade API Function Reference. For more information on when the database server deletes a smart large object, see Deleting a Smart Large Object.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]