BAEL-18143 Fix spring-jooq issue related to dialect (#8061)
- Updated SQLErrorCodeSQLExceptionTranslator to use dialect.thirdParty().springDbName()
This commit is contained in:
@@ -12,7 +12,7 @@ public class ExceptionTranslator extends DefaultExecuteListener {
|
|||||||
@Override
|
@Override
|
||||||
public void exception(ExecuteContext context) {
|
public void exception(ExecuteContext context) {
|
||||||
SQLDialect dialect = context.configuration().dialect();
|
SQLDialect dialect = context.configuration().dialect();
|
||||||
SQLExceptionTranslator translator = new SQLErrorCodeSQLExceptionTranslator(dialect.name());
|
SQLExceptionTranslator translator = new SQLErrorCodeSQLExceptionTranslator(dialect.thirdParty().springDbName());
|
||||||
|
|
||||||
context.exception(translator.translate("Access database using jOOQ", context.sql(), context.sqlException()));
|
context.exception(translator.translate("Access database using jOOQ", context.sql(), context.sqlException()));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user