|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
firebird udf ltrim function
Hi,
I have configured firebird.conf (i use Firebird with Windows XP) as below : RootDirectory = E:\Program Files\FireBird\FireBird_1_5 UdfAccess = Restrict UDF and after i have restarded my machine. When i use the function ltrim i have that "Sql error code = -804 function unknown ltrim". My SQL auery is : FOR SELECT id_nat FROM IMPORT1 INTO :id_nat_ori DO BEGIN IF(cast(id_nat_ori as integer) < 99999999) THEN BEGIN id_nat = ltrim(:id_nat_ori); UPDATE IMPORT1 set id_nat = :id_nat; END END Thanks for help ! |
|
#2
|
|||
|
|||
|
You must declare the external function before you can use it. Execute this sql
Code:
DECLARE EXTERNAL FUNCTION ltrim CSTRING(255) RETURNS CSTRING(255) FREE_IT ENTRY_POINT 'IB_UDF_ltrim' MODULE_NAME 'ib_udf'; or the execute the ib_udf.sql file from the UDF directory to get them all. Lutz
__________________
web based Firebird and InterBase administration: http://ibwebadmin.sf.net |
|
#3
|
|||
|
|||
|
ltrim
Thanks for your reply.
I tried to execute the ib_sql.udf ans I obtained this message : "DEFINE FUNCTION failed - attemp to store duplicate value (...) in unique index RDB$INDEX_9" Sorry but I begin with Firebird. Best regards. Magoer |
|
#4
|
|||
|
|||
|
Quote:
The message indicates that some of the functions from ib_udf.sql are already defined in your database. You can execute Code:
SELECT RDB$FUNCTION_NAME FROM RDB$FUNCTIONS Lutz -- web based Firebird and InterBase administration: http://www.ibwebadmin.net |
![]() |
| Viewing: Dev Shed Forums > Databases > Firebird SQL Development > firebird udf ltrim function |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|