Problem with integer overflow Delphi XE 10.4 - Firebird 3.0

The forum for ZeosLib 7.2 Report problems. Ask for help, post proposals for the new version and Zeoslib 7.2 features here. This is a forum that will be edited once the 7.2.x version goes into RC/stable!!

My personal intention for 7.2 is to speed up the internals as optimal a possible for all IDE's. Hope you can help?! Have fun with testing 7.2
Locked
rogerio
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 05.10.2021, 19:19

Problem with integer overflow Delphi XE 10.4 - Firebird 3.0

Post by rogerio »

Hey guys.

I use the Zeos component in Delphi for many years and as soon as the XE versions were released I continued with the Zeos component very successfully.

I currently use:

Delphi 10.4 Community

Firebird 3.0 Database

ZEOS version 7.2.14-release

The problem that is occurring is that when executing a SELECT by the Zeos component, it is returning an Integer OverFlow error.

What puzzles me the most is that it never happened. I opened a project in production just to make some implementations and compile without any problem. This error only occurs when opening the ZQuery component with the SELECT result.

I'm doing it as follows:

with ZQuery1 from begin
Close;
Sql.Clear;
Sql.Add('SELECT * FROM CadClientes');
Sql.Add('WHERE');
Sql.Add('CustomerCod = :Par0');
Params[0].AsInteger := ZQuery2.FieldByName('NumeroCli').AsInteger;
Open; <<<-- Error occurs when you get here
end;

As I said above, it always worked this way and when entering OPEN, returns Integer Overflow.

I did the same SELECT using the FireDAC component and it worked perfectly.

Remember that I had already opened the same project in the same Delphi days ago and everything worked perfectly.

Would you like to know what has changed in a few days now that I can't run the system without giving the mentioned error?

Thanks,

Rogerio.
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: Problem with integer overflow Delphi XE 10.4 - Firebird 3.0

Post by marsupilami »

Locked because it is a duplicate of viewtopic.php?f=17&t=146888&p=181069#p181043

Please look there :)
Locked