-
Notifications
You must be signed in to change notification settings - Fork 841
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
ArrayIndexOutOfBoundsException with postgresql driver version 42.5.1 #2723
Comments
Well the driver is not thread safe so it's understandable that you would have this problem. |
Can this be related to #2291? That pull-request replaced |
Could be, but without a way to replicate this problem I'd be guessing. |
I have added test code to the description. |
Unfortunately PostgreSQL connections cannot be shared. I'm surprised this works at all. |
Previously, PgResultSet#getTimestamp used a connection-shared TimestampUtils, so PgResultSet#getTimestamp produced wrong results on concurrent access to resultests derived from different statements of the same connection. fixes #2723
Please read https://stackoverflow.com/help/minimal-reproducible-example
Describe the issue
ArrayIndexOutOfBoundsException with postgresql driver version 42.5.1.
Driver Version?
42.5.1
Java Version?
openjdk 17.0.2 2022-01-18
OpenJDK Runtime Environment (build 17.0.2+8-86)
OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, sharing)
OS Version?
Linux fa30c4efe5b1 5.4.0-1063-aws #66~18.04.1-Ubuntu SMP Thu Jan 13 19:45:37 UTC 2022 x86_64 GNU/Linux
PostgreSQL Version?
PostgreSQL 14.3 on aarch64-unknown-linux-gnu, compiled by aarch64-unknown-linux-gnu-gcc (GCC) 7.4.0, 64-bit
Test Code
The code below should (eventually) exit with the output:
when run against any PostgreSQL JDBC driver version 42.5.1
The text was updated successfully, but these errors were encountered: