Browse Source

Pull request #5773: BI-112953 fix:jdbcResolve正则匹配trino

Merge in DEC/decision-webui-dcm from ~ARIES.LSY/decision-webui-dcm:release/10.0 to release/10.0

* commit '10175ebf04652dce0ae923ee499bd697a4eb4dd9':
  BI-112953 fix:jdbcResolve正则匹配trino
release/10.0
Aries.Lsy 2 years ago
parent
commit
3cf2570797
  1. 2
      src/modules/app.provider.ts

2
src/modules/app.provider.ts

@ -25,7 +25,7 @@ BI.provider('dec.connection.provider.datebase', function() {
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|clickhouse):(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|trino):(thin:([0-9a-zA-Z/]*)?@|thin:([0-9a-zA-Z/]*)?@\/\/|\/\/|)([0-9a-zA-Z_\\.-]+)(:([0-9|port]+))?(\/|;DatabaseName=)?([^]+)?(.*)/i);
if (result) {
return {
host: result[5],

Loading…
Cancel
Save