Browse Source

Pull request #5165: REPORT-72078 fix:【11.0】修复Informix类型连接的URL转换问题

Merge in DEC/decision-webui-dcm from ~CAUCHY.KE/decision-webui-dcm:release/11.0 to release/11.0

* commit '796386969eecf19b995eb63c0629c6a19f70c5fc':
  REPORT-72078 fix:修复Informix类型连接的URL转换问题
release/11.0
Cauchy.Ke 3 years ago
parent
commit
9f74cdd0c3
  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}`); .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}` : '') return baseUrl.replace('hostname', host).replace(':port', port ? `:${port}` : '')
.replace('database', database) .replace('database', database)
.replace('dbname', database); .replace('dbname', database);

Loading…
Cancel
Save