In our software we use an UDF since 1997. Now, after creating the
complete software, this UDF doesn't run. It gives the error message
db2 => values (lzgneu.bitand (5, 7))
1
-----------
SQL0430N User defined function "LZGNEU.BITAND" (specific name
"SQL050628151206273") has abnormally terminated. SQLSTATE=38503
This is the definition:
#include <sqludf.h>
#include <export.h>
#include <implement.h>
void SQL_API_FN bitand (
SQLUDF_INTEGER *operator1,
SQLUDF_INTEGER *operator2,
SQLUDF_INTEGER *out,
SQLUDF_SMALLINT *operator1_null,
SQLUDF_SMALLINT *operator2_null,
SQLUDF_SMALLINT *outnull,
SQLUDF_TRAIL_ARGS)
{
*out = *operator1 & *operator2;
*outnull = 0;
} /* bitand */
Really mysterious is, that the function bitor, which is the same, only
the operator "&" is replaced with "|", is working as in the past 8
years.
The error occurs on AIX 4.x running DB2 V7. On Linux with DB2 V8.2 it's
running OK.
What can we do?
Regards,
--
Burkhard Schultheis
Tele Data Electronic, Wagnerstr. 10, D-76448 Durmersheim
Email: sc********@tde-online.de
Phone: +49 7245 9287-21