How to use firebird 2.1 ABS in firebird 2.0?

0

I have a client that already has a system that runs in firebird 2.0 and my system runs in the newer version of firebird, so I had to regress the database and have some functions that 2.0 does not have yet ... Like me could you do ABS (catch absolute number) in firebird 2.0?

    
asked by anonymous 30.04.2018 / 16:43

2 answers

2

You can use the DLL's of the default installation folder of Firebird :

DECLARE EXTERNAL FUNCTION abs 
DOUBLE PRECISION
RETURNS DOUBLE PRECISION BY VALUE
ENTRY_POINT 'IB_UDF_abs' MODULE_NAME 'ib_udf';
    
22.08.2018 / 02:56
0

Creating an external UDF can use this function. Build the same method in Delphi or C ++ and create a dll.

    
22.08.2018 / 02:29