diff --git a/mybatis-plus-extension/src/main/java/com/baomidou/mybatisplus/extension/ddl/DdlHelper.java b/mybatis-plus-extension/src/main/java/com/baomidou/mybatisplus/extension/ddl/DdlHelper.java index 39e062ab6..f8ab9e64a 100644 --- a/mybatis-plus-extension/src/main/java/com/baomidou/mybatisplus/extension/ddl/DdlHelper.java +++ b/mybatis-plus-extension/src/main/java/com/baomidou/mybatisplus/extension/ddl/DdlHelper.java @@ -148,9 +148,7 @@ public static ScriptRunner getScriptRunner(Connection connection, boolean autoCo protected static IDdlGenerator getDdlGenerator(String jdbcUrl) throws RuntimeException { DbType dbType = JdbcUtils.getDbType(jdbcUrl); switch (dbType) { - case OTHER: - throw ExceptionUtils.mpe("%s database not supported.", dbType.getDb()); - case MYSQL: + case MYSQL: case MARIADB: case GBASE: case OSCAR: @@ -186,20 +184,7 @@ protected static IDdlGenerator getDdlGenerator(String jdbcUrl) throws RuntimeExc case GBASE8S_PG: case GBASE_8C: return PostgreDdlGenerator.newInstance(); - case DB2: - case SQL_SERVER2005: - case SYBASE: - case XCloud: - case GBASE_8S: - case GBASEDBT: - case GBASE_INFORMIX: - case SINODB: - case INFORMIX: - case TRINO: - case PRESTO: - throw ExceptionUtils.mpe("%s database not supported.", dbType.getDb()); - // 处理未知的数据库类型 - default: + default: throw ExceptionUtils.mpe("%s database not supported.", dbType.getDb()); }