Skip to content

Commit b7757bf

Browse files
committed
Adapt SQLStateSQLExceptionTranslatorTests to newly added Informix codes
Signed-off-by: Lukáš Kvídera <[email protected]>
1 parent c1de228 commit b7757bf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,16 @@ void translateDuplicateKeySapHana() {
9090
assertTranslation("23000", 301, DuplicateKeyException.class);
9191
}
9292

93+
@Test
94+
void translateDuplicateKeyInformix1() {
95+
assertTranslation("23000", -239, DuplicateKeyException.class);
96+
}
97+
98+
@Test
99+
void translateDuplicateKeyInformix2() {
100+
assertTranslation("23000", -268, DuplicateKeyException.class);
101+
}
102+
93103
@Test
94104
void translateDataAccessResourceFailure() {
95105
assertTranslation("53", DataAccessResourceFailureException.class);

0 commit comments

Comments
 (0)