Browse Source

REPORT-90013 设计器新增不支持的数据连接类型可以保存

【问题原因】判断逻辑写反了
【改动思路】修改判读逻辑
new-design
Leo.Qin 2 years ago
parent
commit
9f38b4c2cb
  1. 2
      designer-base/src/main/java/com/fr/design/data/datapane/connect/ConnectionManagerPane.java

2
designer-base/src/main/java/com/fr/design/data/datapane/connect/ConnectionManagerPane.java

@ -80,7 +80,7 @@ public class ConnectionManagerPane extends LoadingBasicPane implements Connectio
// 仅校验jdbc连接,其他插件数据连接不进行校验
if (connection instanceof JDBCDatabaseConnection) {
DatabaseResultBean bean = WorkContext.getCurrent().get(DataBaseTypeOperator.class).validateDatabaseType(connection.getDriver(), connection.feature());
if (bean.equals(DatabaseResultBean.DefaultBean())) {
if (!bean.equals(DatabaseResultBean.DefaultBean())) {
throw new DataBaseNotSupportedException(bean.getMsg());
}
}

Loading…
Cancel
Save