Always return long from ibase_gen_id() on IB < 6

This commit is contained in:
Ard Biesheuvel 2003-09-23 23:08:59 +00:00
parent afdc20a094
commit 50911d0904

View File

@ -4498,13 +4498,13 @@ PHP_FUNCTION(ibase_gen_id)
/* don't return the generator value as a string unless it doesn't fit in a long */
#ifdef SQL_INT64
if (result > LONG_MAX)
#endif
{
char res[24];
sprintf(res,"%" LL_MASK "d", result);
RETURN_STRING(res,1);
}
#endif
RETURN_LONG((long)result);
}