From 5967bd5c7a77826cf82737413f89e79ebaaef5f3 Mon Sep 17 00:00:00 2001 From: He Wang Date: Mon, 19 Feb 2024 11:06:04 +0800 Subject: [PATCH] fix oceanbase handlesDatabaseProductNameAndVersion --- .../community/database/oceanbase/OceanBaseDatabaseType.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flyway-database-oceanbase/src/main/java/org/flywaydb/community/database/oceanbase/OceanBaseDatabaseType.java b/flyway-database-oceanbase/src/main/java/org/flywaydb/community/database/oceanbase/OceanBaseDatabaseType.java index b0a9198..baad854 100644 --- a/flyway-database-oceanbase/src/main/java/org/flywaydb/community/database/oceanbase/OceanBaseDatabaseType.java +++ b/flyway-database-oceanbase/src/main/java/org/flywaydb/community/database/oceanbase/OceanBaseDatabaseType.java @@ -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);