Skip to content

Commit

Permalink
Use constant
Browse files Browse the repository at this point in the history
  • Loading branch information
mrotteveel committed Jul 7, 2024
1 parent 1951c6d commit 897d910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/org/firebirdsql/jaybird/xca/FatalErrorHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private static boolean isBrokenConnectionErrorCode(int errorCode) {
}

private static boolean isBrokenConnectionSqlState(String sqlState) {
return sqlState != null && sqlState.startsWith("08");
return sqlState != null && sqlState.startsWith(SQLSTATE_CLASS_CONNECTION_ERROR);
}

/**
Expand Down

0 comments on commit 897d910

Please sign in to comment.