Subject UDF problem when I call isc_decode_date
Author Marco Castroo
Hi,

Can someone help me on this? This function gets a date parameter and
returns a formated string data.

char * fn_RetornMonthYear(ISC_QUAD *d)
{
struct tm tm_date;
char *buffer = (char *)malloc (8);

isc_decode_date(d, &tm_date);
strftime(buffer, 8 - 1, "%2.2m%4.4Y"+'\0', &tm_date);
return buffer;
}

The problem is at the isc_decode_date if it is not commented I get
this message in a Linux server (Fedora 7) running Firebird 2.1.

Statement failed, SQLCODE = -902
Unable to complete network request to host "localhost".
-Error reading data from the connection.

Thanks,

Marco Castro