Merge branch 1.3.x
This commit is contained in:
@@ -57,8 +57,9 @@ class JooqExceptionTranslator extends DefaultExecuteListener {
|
||||
|
||||
private SQLExceptionTranslator getTranslator(ExecuteContext context) {
|
||||
SQLDialect dialect = context.configuration().dialect();
|
||||
if (dialect != null) {
|
||||
return new SQLErrorCodeSQLExceptionTranslator(dialect.thirdParty().springDbName());
|
||||
if (dialect != null && dialect.thirdParty() != null) {
|
||||
return new SQLErrorCodeSQLExceptionTranslator(
|
||||
dialect.thirdParty().springDbName());
|
||||
}
|
||||
return new SQLStateSQLExceptionTranslator();
|
||||
}
|
||||
|
||||
@@ -39,7 +39,6 @@ import static org.mockito.Mockito.verify;
|
||||
*
|
||||
* @author Andy Wilkinson
|
||||
*/
|
||||
|
||||
@RunWith(Parameterized.class)
|
||||
public class JooqExceptionTranslatorTests {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user