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
correctly emits an inserted object but the following error is raised on completion:
org.postgresql.util.PSQLException: Cannot commit when autoCommit is enabled.
It looks like a flowable constructed by returnGeneratedKeys performs a commit on completion and is oblivious to the fact that the underlying connection has auto commits enabled. Connection pools with auto commit enabled seem to be the default(?).
Am I doing something wrong?
The text was updated successfully, but these errors were encountered:
Ok, I've added a check on getAutoCommit() value before I call commit or rollback (and a unit test). Let me know if that has you sorted. Deployed to Maven Central as 0.1-RC30.
When I use the
returnGeneratedKeys
method with auto commit enabled then an error is emitted downstream. Namely, the code of this formcorrectly emits an inserted object but the following error is raised on completion:
It looks like a flowable constructed by
returnGeneratedKeys
performs a commit on completion and is oblivious to the fact that the underlying connection has auto commits enabled. Connection pools with auto commit enabled seem to be the default(?).Am I doing something wrong?
The text was updated successfully, but these errors were encountered: