Skip to content

Commit

Permalink
[CONJ-1182] missing XA error mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Jun 19, 2024
1 parent e3158e4 commit 1bdb0b3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/org/mariadb/jdbc/MariaDbPoolConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,18 @@ private XAException mapXaException(SQLException sqle) {
case 1401:
xaErrorCode = XAException.XAER_RMERR;
break;
case 1440:
xaErrorCode = XAException.XAER_DUPID;
break;
case 1402:
xaErrorCode = XAException.XA_RBROLLBACK;
break;
case 1613:
xaErrorCode = XAException.XA_RBTIMEOUT;
break;
case 1614:
xaErrorCode = XAException.XA_RBDEADLOCK;
break;
default:
xaErrorCode = 0;
break;
Expand Down

0 comments on commit 1bdb0b3

Please sign in to comment.