2
In my system, after the migration of Firebird 2.5 to the 3.0, many reports and other functions began to give problem stating that the expected was Integer and the current is LargeInt.
I took a look and saw some research with count in the 3.0 return a column Bigint, while in the 2.5 returns a column Integer.
To solve it the way I know it, I’d have to make a cast in everything that is giving error, I tested and it worked, however it is a big system, it will take a lot of work.
Does anyone know any way to resolve this, on the Firebird? some configuration, or something?
It wasn’t clear to me. You select Count, and assign this value to an Integer type variable. This in Firebird 3 gives error ?
– Victor Tadashi
No @Victorzanella... In the simple
Openofdataseterror is generated. This is because thedatasetalready owns theTFieldsadded, but when opened, the field comes in another format... That’s why the message: Expected Integer, found Largeint.– Andrey
Hard to say @Andrey. The question is focused on Firebird. I’ll wait for the sounobre to answer. ;)
– Victor Tadashi
Tranquil @Victorzanella... I may be wrong, but as I’ve been through this problem, it seems obvious the problem.. but let’s wait for the sounobre
– Andrey
Victorzanella is exactly what @Andrey said, if I add it again in the dataset, I’ll stick to the incident backwards, giving Firebird 2.5 an error... I’m actually looking for some miraculous configuration that saves me from casting a multiple piece of code.... rsrs
– sounobre