Subject | Re: [IBO] :PARAM inside function call not working! |
---|---|
Author | Robert Osowiecki |
Post date | 2005-06-08T10:55:16Z |
Helen Borrie wrote:
DECLARE EXTERNAL FUNCTION PCRE_SIMILAR CSTRING(255), CSTRING(255)
RETURNS INT ENTRY_POINT 'ibpcre_similar' MODULE_NAME 'ibpcre';
and DLL function header is:
int _export ibpcre_similar(char * subject, char *pattern);
I tested it in IBExpert -- it works alright.
Robson.
>1. Make sure the statement is prepared before you try to refer to itsNow I'm getting the same error at Prepare() statement :)
>Params. A simple
>if not MyStatement->Prepared
> MyStatement->Prepare
>
>
>
>2. Check whether the UDF declaration is by value, by reference or byHmm... I created it basing on another UDF library. SQL declaration goes as:
>descriptor.
>
DECLARE EXTERNAL FUNCTION PCRE_SIMILAR CSTRING(255), CSTRING(255)
RETURNS INT ENTRY_POINT 'ibpcre_similar' MODULE_NAME 'ibpcre';
and DLL function header is:
int _export ibpcre_similar(char * subject, char *pattern);
I tested it in IBExpert -- it works alright.
>SELECT * from ARTICLEDATACAST did not help either...
>where (my_udf_function(
> ar_code,
> cast(:AR_CODE as varchar(whatever))
> )=0)
>
>
>
Robson.