Skip to content

Commit

Permalink
wip - mysql jdbc connector
Browse files Browse the repository at this point in the history
  • Loading branch information
hmiguim committed Feb 22, 2024
1 parent ffd19c7 commit 8ce5609
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dbptk-modules/dbptk-module-mysql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@

<!-- module-specific dependencies -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.47</version>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<version>8.3.0</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import com.databasepreservation.model.exception.ServerException;
import com.databasepreservation.model.modules.ExceptionNormalizer;


/**
* @author Bruno Ferreira <bferreira@keep.pt>
*/
Expand Down Expand Up @@ -94,8 +93,7 @@ public ModuleException normalizeException(Exception exception, String contextMes
// these are also SQLExceptions, but prefer using the codes above since they are
// more specific and then check if it is a "connection problem"

if (exception instanceof com.mysql.jdbc.CommunicationsException
|| exception instanceof com.mysql.jdbc.exceptions.jdbc4.CommunicationsException) {
if (exception instanceof com.mysql.cj.exceptions.CJCommunicationsException) {
return new ConnectionException().withCause(exception);
}

Expand Down

0 comments on commit 8ce5609

Please sign in to comment.