Hi Team,
I am using postgresql version 9.4.1. We are in the process of upgrading to PostgreSQL 10.
While doing so, we have upgraded the JDBC postgres driver from 9.1-901.jdbc4 to 42.2.5 Post the upgrade we are facing the issue with data integrity where the numeric value is getting rounded off.
Scenario:
I am trying to insert a value (float datatype in Java) and in DB it is represented as Numeric.
When I try to store, "1234567" the value is stored as "1234570".
No, it is stored as $4 = '1.234567e+06'
Which is correct as it is a 7-digit figure 1.234567 * 10^6.
--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963