Skip to content
Merged
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 @@ -64,7 +64,7 @@ public static SQLException toSqlState(String message, String debugMessage, Excep
} else if (cause instanceof ConnectionInitiationException) {
return new SQLException(exceptionMessage, SQL_STATE_CONNECTION_EXCEPTION, cause);
} else if (cause instanceof ServerException) {
return new SQLException(exceptionMessage, SQL_STATE_DATA_EXCEPTION, cause);
return new SQLException(exceptionMessage, SQL_STATE_DATA_EXCEPTION, ((ServerException) cause).getCode(), cause);
} else if (cause instanceof ClientException) {
return new SQLException(exceptionMessage, SQL_STATE_CLIENT_ERROR, cause);
} else if (cause instanceof MalformedURLException) {
Expand Down
Loading