Browse Source

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

* commit '55bc265ebf76d50e0fe87d06dc6b6ec898e78741':
  REPORT-72078 fix:修复Informix类型连接的URL转换问题
bugfix/10.0
superman 3 years ago
parent
commit
6a86956e2c
  1. 8
      src/modules/app.service.ts

8
src/modules/app.service.ts

@ -67,6 +67,14 @@ export function splitUrl(host: string, port: string, database: string, baseUrl:
.replace('=database', `=${database}`);
}
// https://work.fineres.com/browse/REPORT-72078
if (baseUrl.startsWith('jdbc:informix-sqli')) {
return baseUrl.replace('hostname', host)
.replace(':port', port ? `:${port}` : '')
.replace('database', database)
.replace(':INFORMIXSERVER={server}','');
}
return baseUrl.replace('hostname', host).replace(':port', port ? `:${port}` : '')
.replace('database', database)
.replace('dbname', database);

Loading…
Cancel
Save