Browse Source

Merge pull request #5239 in DEC/decision-webui-dcm from final/10.0 to persist/10.0

* commit '947454ed76757953d5fe5a6996117c26477d296e':
  REPORT-72078 fix:修复Informix类型连接的URL转换问题
persist/10.0 10.0.19.2022.06.10
superman 2 years ago
parent
commit
3b1b68a365
  1. 8
      src/modules/app.service.ts

8
src/modules/app.service.ts

@ -66,6 +66,14 @@ export function splitUrl(host: string, port: string, database: string, baseUrl:
return baseUrl.replace('hostname', host).replace(':port', port ? `:${port}` : '')
.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)

Loading…
Cancel
Save