How to check if a transaction returned a rollback error? #2801
Answered
by
weiznich
keepsimple1
asked this question in
Q&A
-
diesel/diesel/src/connection/mod.rs Lines 52 to 54 in 3e8fd4d Referring to the above doc comment, how do we check if a transaction hit the second case, i.e. returned an error from the rollback? |
Beta Was this translation helpful? Give feedback.
Answered by
weiznich
Jun 4, 2021
Replies: 1 comment 7 replies
-
There is currently no way to actually check in a general way if the rollback was successful or not, as this could return nearly every error from a connection. I would be open for improvements here. |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
keepsimple1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is currently no way to actually check in a general way if the rollback was successful or not, as this could return nearly every error from a connection. I would be open for improvements here.