fix:使用MariaDB无法获取数据表的兼容性问题

This commit is contained in:
Tamrac 2024-06-18 07:49:17 +00:00
parent 086b206139
commit f0f693050e
2 changed files with 7 additions and 2 deletions

View File

@ -31,7 +31,12 @@ public enum DataBaseType {
/**
* SQL Server
*/
SQL_SERVER("Microsoft SQL Server");
SQL_SERVER("Microsoft SQL Server"),
/**
* MariaDB
*/
MARIA_DB("MariaDB");
private final String type;

View File

@ -41,7 +41,7 @@ public class DataBaseHelper {
}
public static boolean isMySql() {
return DataBaseType.MY_SQL == getDataBaseType();
return DataBaseType.MY_SQL == getDataBaseType() || DataBaseType.MARIA_DB == getDataBaseType();
}
public static boolean isOracle() {