Search code examples
databasedelphi-7firebirdunidacfirebird-3.0

Count in Firebird 3.0 bigint vs Firebird 2.5 integer


On my system, after the migration from Firebird 2.5 to 3.0, many reports and other functions began to give problems stating that what was expected was Integer and the current one is LargeInt. I took a look and saw that some searches with the count in 3.0 return a bigInt column, while in 2.5 it returns an integer column.

To solve the way I know, I would have to cast a cast on everything that is giving error, tested and worked, but it is a big system, it will give a lot of work.

Does anyone know of any way to resolve this in Firebird itself? Some configuration, or something?


Solution

  • I use Unidac, and for the solution I used Map Rules (Data Type Mapping).