Subject | Re: UDF problem when I call isc_decode_date |
---|---|
Author | Marco Castroo |
Post date | 2009-02-11T13:32:53Z |
Dmitry,
The dialect is 3. The SQL declaration is:
DECLARE EXTERNAL FUNCTION RETORNAMONTHYEAR
TIMESTAMP
RETURNS CSTRING(10) CHARACTER SET NONE FREE_IT
ENTRY_POINT 'fn_RetornaMonthYear' MODULE_NAME 'mcudflib';
It returns a 8 bytes string, including \0 ("01/2009"). The malloc
alocs 8 bytes. I tried 1000 bytes with no difference in the error message.
The same code in a Windows DLL works fine.
Thanks,
Marco Castro
The dialect is 3. The SQL declaration is:
DECLARE EXTERNAL FUNCTION RETORNAMONTHYEAR
TIMESTAMP
RETURNS CSTRING(10) CHARACTER SET NONE FREE_IT
ENTRY_POINT 'fn_RetornaMonthYear' MODULE_NAME 'mcudflib';
It returns a 8 bytes string, including \0 ("01/2009"). The malloc
alocs 8 bytes. I tried 1000 bytes with no difference in the error message.
The same code in a Windows DLL works fine.
Thanks,
Marco Castro