Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading postgres JDBC driver to 42.3.0 breaks big decimal read after 5 reads #1865

Closed
NikolayMetchev opened this issue Oct 27, 2021 · 1 comment

Comments

@NikolayMetchev
Copy link

NikolayMetchev commented Oct 27, 2021

If you have a numeric column in a postgres table with a value of 20000 and you read it 5 times on the 5th read it will read it as 2 instead of 20000.

This only breaks if you use the postgres jdbc driver version 42.3.0. If you revert to an older JDBC driver for postgres the bug doesn't manifest.

If you use pure JDBC and avoid hikari altogether the bug also doesn't reproduce.

Changing the version of postgres server also seems to have no affect on this bug.

Please find attached a project that reproduces the problem.

postgresBug.zip

I have also reported this to postgresJDBC project: pgjdbc/pgjdbc#2326

@NikolayMetchev
Copy link
Author

Looks like it was a bug in the JDBC driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant