Browse Source

Merge pull request #687 in DEC/decision-webui-dcm from release/10.0 to bugfix/10.0

* commit 'af7a64c0f2d2bde2f774921cd23ac36e08e71f17':
  DEC-15287 fix: 【迭代】【数据连接】数据连接信息页面,没有主机ip和端口号
bugfix/10.0
superman 4 years ago
parent
commit
e8b8c4fcd9
  1. 2
      src/modules/app.service.ts

2
src/modules/app.service.ts

@ -68,7 +68,7 @@ export function resolveUrlInfo (url: string) {
urlInfo: greenplumUrl[9], urlInfo: greenplumUrl[9],
}; };
} }
const result = url.match(/^jdbc:(mysql|sqlserver|db2|impala|kylin|phoenix|derby|gbase|gbasedbt-sqli|informix-sqli|h2|postgresql|hive2|vertica|kingbase|presto|redshift|postgresql):(thin:([0-9a-zA-Z/]*)?@|thin:([0-9a-zA-Z/]*)?@\/\/|\/\/|)([0-9a-zA-Z_\\.-]+)(:([0-9|port]+))?(\/|;DatabaseName=)?([^]+)?(.*)/i); const result = url.match(/^jdbc:(mysql|sqlserver|db2|impala|kylin|phoenix|derby|gbase|gbasedbt-sqli|informix-sqli|h2|postgresql|hive2|vertica|kingbase|presto|redshift|postgresql|clickhouse):(thin:([0-9a-zA-Z/]*)?@|thin:([0-9a-zA-Z/]*)?@\/\/|\/\/|)([0-9a-zA-Z_\\.-]+)(:([0-9|port]+))?(\/|;DatabaseName=)?([^]+)?(.*)/i);
if (result) { if (result) {
return { return {
host: result[5], host: result[5],

Loading…
Cancel
Save