On 06/04/2024 14:46, Simone Chierichetti wrote:
> I need to open a FB DB instance that uses rfunc UDF.
> I can't get this working.
>
> I installed firebird 3.0.11.33703_0_Win32 on windows 10 x64.
> I put rfunc.dll in UDF folder under installation folder of FB.
>
> i set in firebird.conf:
> UdfAccess = UDF
That is the wrong value, it should be
UdfAccess = Restrict UDF
> Then i restarted the service.
>
> When I try to connect using
> dbeaver 24.0.1
> firebird jdbc driver Jaybird 5.0.2
>
> it opens up the db, but when I try to access a specific table that uses
> LTRIM(), it says:
> invalid request BLR at offset 2: function LTRIM is not defined module > name or entrypoint could not be found
Why not just use the built-in TRIM function, that is, TRIM(LEADING FROM
...)? See
https://firebirdsql.org/file/documentation/chunk/en/refdocs/fblangref30/fblangref30-functions-string.html#fblangref30-scalarfuncs-trim
> I also checked that UDF is accessible by any user but I can't get this
> working.
>
> Any advice?
Also make sure the UDF is actually 32-bit, given you're using Firebird
32-bit.
Mark
--
Mark Rotteveel