Skip to content

Commit 960bffd

Browse files
dkapilmaibin
authored andcommitted
BAEL-18143 Fix spring-jooq issue related to dialect (eugenp#8061)
- Updated SQLErrorCodeSQLExceptionTranslator to use dialect.thirdParty().springDbName()
1 parent b65faf4 commit 960bffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-jooq/src/test/java/com/baeldung/jooq/introduction/ExceptionTranslator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class ExceptionTranslator extends DefaultExecuteListener {
1212
@Override
1313
public void exception(ExecuteContext context) {
1414
SQLDialect dialect = context.configuration().dialect();
15-
SQLExceptionTranslator translator = new SQLErrorCodeSQLExceptionTranslator(dialect.name());
15+
SQLExceptionTranslator translator = new SQLErrorCodeSQLExceptionTranslator(dialect.thirdParty().springDbName());
1616

1717
context.exception(translator.translate("Access database using jOOQ", context.sql(), context.sqlException()));
1818
}

0 commit comments

Comments
 (0)