Subject | Re: Why this query doesn't work? |
---|---|
Author | fabiano_bonin |
Post date | 2005-07-11T19:04:31Z |
--- In firebird-support@yahoogroups.com, "Ivan Prenosil"
<Ivan.Prenosil@s...> wrote:
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.
<Ivan.Prenosil@s...> wrote:
> It is because input parameter of your UDF is CSTRING.I think you are right. If i redeclare my udf this way:
> Rewrite UDF to use one of Firebird's native types, CHAR or VARCHAR.
>
> Ivan
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.