Subject | Re: [ib-support] UUID UDF's |
---|---|
Author | Ivan Prenosil |
Post date | 2002-11-20T14:18:50Z |
> I have read here before that they could be stored as char(16)Of course, it is basic "feature" of CSTRINGs.
> 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.
> I have tried declaring it asDo not you use c-strings internally in UDF ?
>
> DECLARE EXTERNAL FUNCTION UUID_CREATE
> CHAR(16),
> RETURNS PARAMETER 1
> ENTRY_POINT 'fn_uuid_create' MODULE_NAME 'uuidlib';
>
> but it still fails.
Have you tried:
DECLARE EXTERNAL FUNCTION UUID_CREATE
CHAR(16) CHARACTER SET OCTETS ...
?
Ivan
http://www.volny.cz/iprenosil/interbase