From 0708799d067ea221d60bba81320b4b88cdd08d82 Mon Sep 17 00:00:00 2001 From: "Aries.lsy" <”Aries.lsy@fanruan.com“> Date: Mon, 15 Aug 2022 16:01:04 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-78047=20fix:greenplum=E8=BF=9E=E6=8E=A5u?= =?UTF-8?q?rl=E8=87=AA=E5=8A=A8=E6=8B=BC=E5=86=99=E6=B7=BB=E5=8A=A0Databas?= =?UTF-8?q?eName=3D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/app.provider.ts | 2 +- src/modules/constants/constant.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/app.provider.ts b/src/modules/app.provider.ts index d36a9f8..18a03af 100644 --- a/src/modules/app.provider.ts +++ b/src/modules/app.provider.ts @@ -16,7 +16,7 @@ BI.provider('dec.connection.provider.datebase', function() { }; } - const greenplumUrl = url.match(/^jdbc:(pivotal:greenplum):(thin:([0-9a-zA-Z/]*)?@\/\/|\/\/|)([0-9a-zA-Z_\\.-]+)(:([0-9|port]+))?(\/|;)([^]+)(.*)/i); + const greenplumUrl = url.match(/^jdbc:(pivotal:greenplum):(thin:([0-9a-zA-Z/]*)?@\/\/|\/\/|)([0-9a-zA-Z_\\.-]+)(:([0-9|port]+))?(\/|;DatabaseName=)?([^]+)(.*)/i); if (greenplumUrl) { return { host: greenplumUrl[4], diff --git a/src/modules/constants/constant.ts b/src/modules/constants/constant.ts index 4fabf64..2394339 100644 --- a/src/modules/constants/constant.ts +++ b/src/modules/constants/constant.ts @@ -537,7 +537,7 @@ export const DATA_BASE_TYPES = [ kerberos: false, urls: { 'org.postgresql.Driver': 'jdbc:postgresql://hostname:port/dbname', - 'com.pivotal.jdbc.GreenplumDriver': 'jdbc:pivotal:greenplum://hostname:port;dbname', + 'com.pivotal.jdbc.GreenplumDriver': 'jdbc:pivotal:greenplum://hostname:port;DatabaseName=dbname', }, }, { text: 'Postgresql',