The ifx_lvar_alloc() function

The ifx_lvar_alloc() function specifies whether to allocate memory when fetching lvarchar data.

Syntax

mint ifx_lvar_alloc(mintalloc)
    mint alloc;
alloc
The value of the allocation flag; either 1 or 0

Usage

When the flag is set to 1, ESQL/C automatically performs this memory allocation. You can use a flag value of 1 before a SELECT statement when you are unsure of the amount of data that the SELECT statement returns. When the flag is set to 0, ESQL/C does not automatically perform this memory allocation.

Return codes

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