Is possible to use the SET BIND feature (https://github.com/FirebirdSQL/firebird/blob/master/doc/sql.extensions/README.set_bind.md) from Firebird 3 to remap the datatype of a count statement from BIGINT to INTEGER?
If yes, can you provide details and example how to do this? Ps.: I have a very big old-application written in Delphi 7, with a lot of TSQLQuery with hardcoded count queries mapped to TIntegerField. So is impossible to do a migration right now. I need other options....