Skip to content

Commit

Permalink
Fix wrong asserted code in SQLExceptionSubclassTranslatorTests (#29748)
Browse files Browse the repository at this point in the history
There was a typo in the test, covering the wrong SQLState code.

Polishes a644245.
Relates to gh-29699.
  • Loading branch information
izeye committed Jan 3, 2023
1 parent 32e1a64 commit 62cf2f0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -59,7 +59,7 @@ public void exceptionClassTranslation() {
doTest(new SQLIntegrityConstraintViolationException("", "23505", 0), DuplicateKeyException.class);
doTest(new SQLIntegrityConstraintViolationException("", "23000", 1), DuplicateKeyException.class);
doTest(new SQLIntegrityConstraintViolationException("", "23000", 1062), DuplicateKeyException.class);
doTest(new SQLIntegrityConstraintViolationException("", "23505", 2627), DuplicateKeyException.class);
doTest(new SQLIntegrityConstraintViolationException("", "23000", 2627), DuplicateKeyException.class);
doTest(new SQLInvalidAuthorizationSpecException("", "", 0), PermissionDeniedDataAccessException.class);
doTest(new SQLNonTransientConnectionException("", "", 0), DataAccessResourceFailureException.class);
doTest(new SQLRecoverableException("", "", 0), RecoverableDataAccessException.class);
Expand Down

0 comments on commit 62cf2f0

Please sign in to comment.