SYNOPSIS

\*(T<#include <opendbx/api.h>\*(T>

\*(T<int odbx_lo_close\*(T> \kx \*(T<(odbx_lo_t* lo);\*(T>

DESCRIPTION

This function commits any changes made by \*(T<odbx_lo_write\*(T>() and closes the open large object handle. To ommit calling this function on open large object handles will result in memory leaks as the data structure and dependent memory aren't freed.

The \*(T<lo\*(T> parameter has to be the large object handle created and returned by \*(T<odbx_lo_open\*(T>() via its second parameter. It becomes invalid after it was supplied to \*(T<odbx_lo_close\*(T>() and this function will return an error in this case.

RETURN VALUE

\*(T<odbx_lo_close\*(T>() returns \*(T<ODBX_ERR_SUCCESS\*(T>, or an error code whose value is less than zero if one of the operations couldn't be completed successfully. Possible error codes are listed in the error section and they can be feed to \*(T<odbx_error\*(T>() and \*(T<odbx_error_type\*(T>() to get further details.

ERRORS

-\*(T<ODBX_ERR_BACKEND\*(T>

The native database library couldn't close the large object successfully

-\*(T<ODBX_ERR_HANDLE\*(T>

\*(T<lo\*(T> is NULL or the supplied large object handle is invalid

RELATED TO odbx_lo_close…

\*(T<odbx_lo_open\*(T>()