You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Postgres driver 42.2.11 introduces this change pgjdbc/pgjdbc#1729. Basically it makes commit fail if a JDBC command in the transaction failed. It is possibly a breaking change since code like this will start to throw an exception on transaction commit.
See pgjdbc/pgjdbc#1739 for details and discussion. I do not know if Spring can do something to prevent the issue, I just wanted to give you heads-up.
The text was updated successfully, but these errors were encountered:
lukas-krecan
changed the title
Prepare for Postgre backward incompatible change
Prepare for Postgres JDBC driver backward incompatible change
Mar 22, 2020
From a transaction semantics perspective, we are expecting such a scenario already since such a late-failing commit attempt is quite common in JTA setups. I'm afraid there isn't much we can do from a cross-version compatibility perspective, and arguably we shouldn't even try since we generally aim for aligning with the underlying resource transaction semantics. If the underlying driver decides to reject transactions with failing statements, then we expose that by design.
Affects: 5.2.4
Postgres driver 42.2.11 introduces this change pgjdbc/pgjdbc#1729. Basically it makes commit fail if a JDBC command in the transaction failed. It is possibly a breaking change since code like this will start to throw an exception on transaction commit.
It's reproduced here https://github.com/lukas-krecan/datasource-demo
See pgjdbc/pgjdbc#1739 for details and discussion. I do not know if Spring can do something to prevent the issue, I just wanted to give you heads-up.
The text was updated successfully, but these errors were encountered: