Subject | RE: [firebird-support] declare / create udf sintax |
---|---|
Author | Leyne, Sean |
Post date | 2008-03-13T23:30:48Z |
> Which is the correct sintax to create external udf into fdb?firebird
>
> if I have a function p_round into a pudf.dll library under UDF
> installation directoryThis is the correct syntax.
DECLARE EXTERNAL FUNCTION pround
DOUBLE PRECISION, INTEGER
RETURNS DOUBLE PRECISION BY VALUE
ENTRY_POINT 'p_round' MODULE_NAME 'pudf';
Sean
P.S. I strongly recommend that you prefix UDF's with "F_", since
un-prefixed functions could become duplicated/conflict if the engine
implements the same function.