Skip to content

Commit 62cf2f0

Browse files
authored
Fix wrong asserted code in SQLExceptionSubclassTranslatorTests (#29748)
There was a typo in the test, covering the wrong SQLState code. Polishes a644245. Relates to gh-29699.
1 parent 32e1a64 commit 62cf2f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-jdbc/src/test/java/org/springframework/jdbc/support/SQLExceptionSubclassTranslatorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void exceptionClassTranslation() {
5959
doTest(new SQLIntegrityConstraintViolationException("", "23505", 0), DuplicateKeyException.class);
6060
doTest(new SQLIntegrityConstraintViolationException("", "23000", 1), DuplicateKeyException.class);
6161
doTest(new SQLIntegrityConstraintViolationException("", "23000", 1062), DuplicateKeyException.class);
62-
doTest(new SQLIntegrityConstraintViolationException("", "23505", 2627), DuplicateKeyException.class);
62+
doTest(new SQLIntegrityConstraintViolationException("", "23000", 2627), DuplicateKeyException.class);
6363
doTest(new SQLInvalidAuthorizationSpecException("", "", 0), PermissionDeniedDataAccessException.class);
6464
doTest(new SQLNonTransientConnectionException("", "", 0), DataAccessResourceFailureException.class);
6565
doTest(new SQLRecoverableException("", "", 0), RecoverableDataAccessException.class);

0 commit comments

Comments
 (0)