The ifx_lo_close() function

The ifx_lo_close() function closes an open smart large object.

Syntax

mint ifx_lo_close(LO_fd)
   mint LO_fd;
LO_fd
The LO file descriptor of the smart large object to close. For more information about an LO file descriptor, see The LO file descriptor.

Usage

The ifx_lo_close() function closes the smart large object that is associated with the LO file descriptor, LO_fd. The ifx_lo_open() and ifx_lo_create() functions return an LO file descriptor when they successfully open a smart large object.

When the ifx_lo_close() function closes a smart large object, the database server attempts to unlock the smart large object. In some cases, the database server does not permit the release of the lock until the end of the transaction. (If you do not perform updates to smart large objects inside a BEGIN WORK transaction block, every update is a separate transaction.) This behavior might occur if the isolation mode is repeatable read or if the lock held is an exclusive lock.

Return codes

0
The function was successful.
<0
The function was not successful and the return value indicates the cause of the failure.