Browse Source

Merge pull request #9918 in DESIGN/design from release/10.0 to bugfix/10.0

* commit '010e6d5380e6f5cf59254979b5dbbb48528519d8':
  REPORT-79440 找不到驱动的话可以保存数据连接
bugfix/10.0
superman 2 years ago
parent
commit
717b0bac94
  1. 3
      designer-base/src/main/java/com/fr/design/data/datapane/connect/ConnectionListPane.java

3
designer-base/src/main/java/com/fr/design/data/datapane/connect/ConnectionListPane.java

@ -1,5 +1,6 @@
package com.fr.design.data.datapane.connect;
import com.fr.data.driver.DriverClassNotFoundException;
import com.fr.data.impl.Connection;
import com.fr.data.impl.JDBCDatabaseConnection;
import com.fr.data.impl.JNDIDatabaseConnection;
@ -221,6 +222,8 @@ public class ConnectionListPane extends JListControlPane implements ConnectionSh
Connection connection = entry.getValue();
try {
DataOperator.getInstance().validateConnectionSettings(connection);
} catch (DriverClassNotFoundException e) {
FineLoggerFactory.getLogger().info(e.getMessage());
} catch (SQLException e) {
throw new SQLException(Toolkit.i18nText("Fine-Design_Basic_Database_Connection_Invalid_Config", entry.getKey()) + ", " + e.getMessage(), e.getCause());
}

Loading…
Cancel
Save