Skip to content

Commit

Permalink
Merge pull request #25 from whhe/fix-ob-version
Browse files Browse the repository at this point in the history
fix oceanbase handlesDatabaseProductNameAndVersion
  • Loading branch information
Barry-RG authored Mar 5, 2024
2 parents df29876 + 5967bd5 commit b3ef33f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ public String getBackupDriverClass(String url, ClassLoader classLoader) {

@Override
public boolean handlesDatabaseProductNameAndVersion(String databaseProductName, String databaseProductVersion, Connection connection) {
if (!databaseProductName.contains("MySQL")) {
return false;
}

String versionComment;
try {
versionComment = OceanBaseJdbcUtils.getVersionComment(connection);
Expand Down

0 comments on commit b3ef33f

Please sign in to comment.