Subject | Re: [firebird-support] UDF argument "by descriptor FREE_IT"? |
---|---|
Author | Dmitry Yemanov |
Post date | 2009-01-22T12:23:56Z |
Martijn Tonies wrote:
properly, allocate the value the same way, assign its address to
descriptor's dsc_address and finally return the descriptor address from
the UDF. The engine will release both memory pointers after the call.
Dmitry
>Yes.
> Is it possible to use BY DESCRIPTOR FREE_IT on a UDF argument?
> If so, how does this work internally? I thought Firebird is supplying theYou have to allocate the descriptor with ib_util_malloc(), initialize it
> descriptor?
properly, allocate the value the same way, assign its address to
descriptor's dsc_address and finally return the descriptor address from
the UDF. The engine will release both memory pointers after the call.
Dmitry