Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public boolean isNetworkException(final Throwable throwable, @Nullable TargetDri
if (exception instanceof SQLException) {
return isNetworkException(((SQLException) exception).getSQLState());
} else if (targetDriverDialect != null) {
String sqlState = targetDriverDialect.getSQLState(throwable);
String sqlState = targetDriverDialect.getSQLState(exception);
if (!StringUtils.isNullOrEmpty(sqlState)) {
return isNetworkException(sqlState);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public boolean isNetworkException(final Throwable throwable, @Nullable TargetDri
if (exception instanceof SQLException) {
return isNetworkException(((SQLException) exception).getSQLState());
} else if (targetDriverDialect != null) {
String sqlState = targetDriverDialect.getSQLState(throwable);
String sqlState = targetDriverDialect.getSQLState(exception);
if (!StringUtils.isNullOrEmpty(sqlState)) {
return isNetworkException(sqlState);
}
Expand Down Expand Up @@ -98,7 +98,7 @@ public boolean isLoginException(final Throwable throwable, TargetDriverDialect t
if (exception instanceof SQLException) {
sqlState = ((SQLException) exception).getSQLState();
} else if (targetDriverDialect != null) {
sqlState = targetDriverDialect.getSQLState(throwable);
sqlState = targetDriverDialect.getSQLState(exception);
}

if (isLoginException(sqlState)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public boolean isNetworkException(final Throwable throwable, @Nullable TargetDri
return true;
}
} else if (targetDriverDialect != null) {
String sqlState = targetDriverDialect.getSQLState(throwable);
String sqlState = targetDriverDialect.getSQLState(exception);
if (!StringUtils.isNullOrEmpty(sqlState)) {
return isNetworkException(sqlState);
}
Expand Down
Loading