- Roman Paciorek
- PowerBuilder
- Sunday, 20 October 2024 01:28 PM UTC
Hello to all users of this forum.
I would like to ask you if any of you have encountered a problem similar to mine?
I use three versions of PowerBuilder in my work: 11.5, 19 R3 and 22 R3
The problem occurs only in version 22 and consists in the fact that the values of "numeric" fields read from the PostgreSQL database are incorrect!
For example, if the number is saved with an accuracy of 2 digits after the decimal point, the read value is 100 times greater (see the attached file).
It does not depend on the version of the database server but on the versions of the ODBC drivers used to connect to the database.
I tested this behavior on various versions of PostgreSQL servers (9.x. 12.x, 13.x) and ODBC drivers (8.4, 12.02, 13.00, 15.00)
The problem does not occur only on Postgres 8.4 drivers but I cannot use them because, firstly, it is an archaic version and secondly, the last version of the server to which you can connect using these drivers is version 12.x
This problem is related to regional settings at the operating system level.
For Polish regional settings, the decimal separator is a comma. After changing it to a dot, this problem disappeared but unfortunately such a solution is not an option :-)
Do you have any knowledge about what has changed in this PB 22 that it stopped working correctly with Postgres ODBC new drivers?
I have been using PowerBuilder for over 20 years and I have never had such problems before...
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.