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
Describe the issue
commit() doesn't throw any exceptions/rollback when the transaction has failed
Driver Version?
REL42.2.9
Java Version?
11
PostgreSQL Version?
10.7
To Reproduce
connection.setAutoCommit(false); // start transaction
execute("SELECT pg_sleep(20)")); // our timeout here is set to 10, so we got "canceling statement due to user request", expected
execute("SELECT 0")); // since the last statement failed, here we got "current transaction is aborted", expected
connection.commit(); // it finished without any exceptions.
Shouldn't the driver ROLLBACK if there's an error? (I couldn't find anything about it in the code)
Why can I still commit?
Or it's designed to let the users to rollback ourselves?
Thanks.
The text was updated successfully, but these errors were encountered:
I'm submitting a ...
Describe the issue
commit() doesn't throw any exceptions/rollback when the transaction has failed
Driver Version?
REL42.2.9
Java Version?
11
PostgreSQL Version?
10.7
To Reproduce
Or it's designed to let the users to rollback ourselves?
Thanks.
The text was updated successfully, but these errors were encountered: