When I try to save value 999999999 into Firebird database field - decimal(15,2) from Lazarus application, value -844674408,37 is saved instead.
Used components are IBConnection, SQLQuery and DBEdit.
I made a simple example using employee database - just added one test field:
alter table EMPLOYEE add TEST_FIELD decimal(15,2)
Sample application is attached.
Does anyone know why is this happening? Saving the same number (999999999) using isql or FlameRobin works as expected.
BTW, Lazarus 1.8.2/FPC 3.0.4 on Windows 10 64bit + Firebird 3.0.3 64bit.