There are two steps required to add FUDLibrary to an Interbase installation.
1) The file fudlib.dll
must be copied to the Interbase UDF directory. On my machine this directory is \Program Files\Borland\Interbase\UDF
.
2) The sql file install.sql
must be executed against any databases that use FUDLibrary. This is achieved by using the isql utility.
e.g.
connect /database/test USER 'sysdba' PASSWORD 'masterkey';
in /FUDLibrary/install/install.sql;
There are a number of functions in UDFLib whose names clash with functions in ib_udf.dll
, the UDF library provided with Interbase. To enable FUDLibrary to be used in parallel with ib_udf.dll
, I have used different names for the following functions in UDFLib:
UDFLib | FUDLibrary |
---|---|
cos | fud_cos |
acos | fud_acos |
sin | fud_sin |
asin | fud_asin |
tan | fud_tan |
atan | fud_atan |
atan2 | fud_atan2 |
floor | fud_floor |
log | fud_log |
log10 | fud_log10 |
sqrt | fud_sqrt |
PI | fud_PI |
ltrim | vltrim |
rtrim | vrtrim |
lower | fud_lower |
If you need to use UDFLib names for these functions then execute the script install_udflib_names.sql
against the appropriate database or databases.
To uninstall FUDLibrary do the following tasks.
1) If you executed install_udflib_names.sql
against any database then execute the script remove_udflib_names.sql
against that database.
2) For each database which you ran install.sql
, execute remove.sql
.
3) Delete fudlib.dll
from your Interbase UDF directory.