【bug修复】修复一个代码生成bug

pull/22/head
俞宝山 2021-03-15 11:43:20 +08:00 committed by 小诺
parent 4dac3e0a35
commit 62fa6f4ba3
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ public class Util {
public static String getDataBasename () {
String dataUrl = ConstantContext.me().getStr(CommonConstant.DATABASE_URL_NAME);
String driverName = ConstantContext.me().getStr(CommonConstant.DATABASE_DRIVER_NAME);
if (driverName.contains(DbIdEnum.MS_SQL.getCode())) {
if (driverName.contains(DbIdEnum.MYSQL.getCode())) {
return dataUrl.substring(getIndex(dataUrl, 3, "/") + 1, dataUrl.indexOf("?"));
} else if (driverName.contains(DbIdEnum.ORACLE.getCode())) {
return ConstantContext.me().getStr(CommonConstant.DATABASE_USER_NAME);