Skip to content

Commit fc02f0e

Browse files
committed
fix: default exception translator
Signed-off-by: Dennis Melzer <[email protected]>
1 parent 93113a4 commit fc02f0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jooq/DefaultExceptionTranslatorExecuteListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public SQLExceptionTranslator apply(ExecuteContext context) {
114114
private SQLExceptionTranslator apply(SQLDialect dialect) {
115115
String dbName = getSpringDbName(dialect);
116116
return (dbName != null) ? new SQLErrorCodeSQLExceptionTranslator(dbName)
117-
: new SQLStateSQLExceptionTranslator();
117+
: new SQLErrorCodeSQLExceptionTranslator();
118118
}
119119

120120
private String getSpringDbName(SQLDialect dialect) {

0 commit comments

Comments
 (0)