Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Sebastien FLAESCH — source: IBM Community (ConnectedCommunity.org) Informix forum
Hello,
When are using ESQL/C ifx_var_*() functions to fetch LVARCHAR data dynamically in our Informix driver for Genero BDL.
For now we do following to initialize the opaque structure used by this API:
void *lvarchar = NULL;
ifx_var_flag(&lvarchar, 1);
There is this
ifx_var_init()
we do not use for now. Is this required or is
ifx_var_flag()
sufficient?
Note BTW that the ifx_var_init() function is miss in the ESQL/C documentation.
Seb
------------------------------
Sebastien FLAESCH
------------------------------
↪ replying to Sebastien FLAESCH
Paul Watson — source: IBM Community (ConnectedCommunity.org) Informix forum
If it follows the same logic as the mi_new_var() UDR function then the memory is not initialized. IMHO it makes no sense to initialize it as you use mi_set_vardata() and mi_set_varlen() soon after to write something into the location
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.