INFORMIX
DataBlade API Programmer's Manual
Chapter 7: Processing Results
Home Contents Index Master Index New Book

Specifying the Duration of Returned Objects

The database server user-defined routines generally allocate objects in the current duration. For example, a user-defined function return value created with mi_new_var() is allocated PER_FUNCTION. If a function does not follow this rule, the function reference page indicates the duration of returned values.

To increase the allocation duration, use mi_switch_memory_duration() before the function call that creates the return value.

To allocate your own objects, use mi_alloc() for the current duration or mi_dalloc() for a specific duration.




DataBlade API Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.