Subject Re: [ib-support] UUID UDF's
Author Ivan Prenosil
> I have read here before that they could be stored as char(16)
> character set octets.
>
> I have got the udf working, declared as
>
> DECLARE EXTERNAL FUNCTION UUID_CREATE
> CSTRING(17),
> RETURNS PARAMETER 1
> ENTRY_POINT 'fn_uuid_create' MODULE_NAME 'uuidlib';
>
> however, if the uuid contains a #0 character the uuid is tructated.

Of course, it is basic "feature" of CSTRINGs.


> I have tried declaring it as
>
> DECLARE EXTERNAL FUNCTION UUID_CREATE
> CHAR(16),
> RETURNS PARAMETER 1
> ENTRY_POINT 'fn_uuid_create' MODULE_NAME 'uuidlib';
>
> but it still fails.

Do not you use c-strings internally in UDF ?

Have you tried:
DECLARE EXTERNAL FUNCTION UUID_CREATE
CHAR(16) CHARACTER SET OCTETS ...
?


Ivan
http://www.volny.cz/iprenosil/interbase