From 11a0b47dcb760f79f86acc16ad6853dcecded7ef Mon Sep 17 00:00:00 2001 From: "Destiny.Lin" Date: Tue, 6 Aug 2024 15:18:46 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-114392=20FR-FBP=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E8=AE=BE=E8=AE=A1=E9=80=82=E9=85=8D=20?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=BF=9E=E6=8E=A5=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fr/design/data/datapane/ChoosePane.java | 2 +- .../data/datapane/connect/DatabaseConnectionPane.java | 2 +- .../data/datapane/connect/LocalConnectionSource.java | 11 +++++++++++ .../datapane/preview/ConnectionInfoBeanHelper.java | 4 ++++ .../data/datapane/preview/PreviewTablePane.java | 2 +- .../wrapper/MultiResultTableDataWrapper.java | 2 +- .../tabledata/wrapper/StoreProcedureDataWrapper.java | 2 +- .../com/fr/design/env/HttpWorkspaceConnector.java | 2 ++ .../java/com/fr/design/gui/ilist/TableViewList.java | 2 +- 9 files changed, 23 insertions(+), 6 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/ChoosePane.java b/designer-base/src/main/java/com/fr/design/data/datapane/ChoosePane.java index 507e4c0ddb..7d0859c0ac 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/ChoosePane.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/ChoosePane.java @@ -444,7 +444,7 @@ public class ChoosePane extends BasicBeanPane implements Refresha return TableData.EMPTY_TABLEDATA; } try { - ConnectionRepository.getInstance().testConnection(new ConnectionBean(database)); + ConnectionRepository.getInstance().testConnection(ConnectionInfoBeanHelper.createConnectionInfoBean(database)); connect = true; } catch (Exception ignored) { connect= false; diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/connect/DatabaseConnectionPane.java b/designer-base/src/main/java/com/fr/design/data/datapane/connect/DatabaseConnectionPane.java index fa640f3eb7..6220903adb 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/connect/DatabaseConnectionPane.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/connect/DatabaseConnectionPane.java @@ -432,7 +432,7 @@ public abstract class DatabaseConnectionPane 0) { try { - ConnectionRepository.getInstance().testConnection(new ConnectionBean(datasource, databaseName)); + ConnectionRepository.getInstance().testConnection(ConnectionInfoBeanHelper.createConnectionInfoBean(databaseName, datasource)); status = true; break; } catch (Exception e) {