Subject Re: Why this query doesn't work?
Author fabiano_bonin
--- In firebird-support@yahoogroups.com, "Ivan Prenosil"
<Ivan.Prenosil@s...> wrote:
> It is because input parameter of your UDF is CSTRING.
> Rewrite UDF to use one of Firebird's native types, CHAR or VARCHAR.
>
> Ivan

I think you are right. If i redeclare my udf this way:

DECLARE EXTERNAL FUNCTION UDF_DIGITS
varchar(254)
RETURNS varchar(254)
ENTRY_POINT 'udf_Digits' MODULE_NAME 'tbudf'

The query does work.

The original script to create my udf's uses CSTRING's. Do you see any
problem if i replace CSTRING with VARCHAR in all of them? (i use a
linux and a windows version of the library, both using the same
declarations)

Regards,

Fabiano.