On 02/10/2024 22:50, Svein Erling Tysvær wrote:
> I've no clue why bigint is a problem (and I still only use Firebird
> 2.5), but couldn't changing count(*) to cast(count(*) as integer) be a
> possible workaround?
In some languages or libraries, requesting the value of a BIGINT column
as a 32-bit integer will fail, even if the actual value could be
converted without loss of precision.
In other words, you can only request a 32-bit integer from an INTEGER
column, and you must request a 64-bit integer from a BIGINT.
In any case, if you can change the query, you can probably also change
the code to perform the right conversion.
Mark
--
Mark Rotteveel