提交 46ca7a2a 编写于 作者: sq3536's avatar sq3536

新增gbase

上级 24899b83
......@@ -206,11 +206,14 @@ public class ExecResultExService extends ExecResultServiceImpl {
DataSource ds = dynamicDSMap.get(dsName);
if (ds instanceof DruidDataSource) {
DruidDataSource druidDataSource = (DruidDataSource) dynamicDSMap.get(dsName);
if ("oracle".equals(druidDataSource.getDbType())) {
return execResultExMapper.replaceBatchByOracle(execResults, tableName);
} else if ("dm".equals(druidDataSource.getDbType())) {
if ("oracle".equals(druidDataSource.getDbType())||"dm".equals(druidDataSource.getDbType())||"gbase".equalsIgnoreCase(druidDataSource.getDbType())) {
return execResultExMapper.replaceBatchByOracle(execResults, tableName);
} else if ("mysql".equals(druidDataSource.getDbType())) {
return execResultExMapper.replaceBatch(execResults, tableName);
} else if ("postgresql".equals(druidDataSource.getDbType())) {
return execResultExMapper.replaceBatchByPG(execResults, tableName);
}
}
}
}
......
......@@ -32,6 +32,7 @@ public class MybatisConfiguration {
p.setProperty("MySQL", "mysql");
p.setProperty("PostgreSQL", "postgresql");
p.setProperty("DM", "oracle");//达梦数据库使用oracle模式
p.setProperty("GBASE", "oracle");//达梦数据库使用oracle模式
p.setProperty("H2", "mysql");//根据当前运行的数据库设置h2对应的databaseid
databaseIdProvider.setProperties(p);
return databaseIdProvider;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册