Browse Source

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

Merge in DEC/decision-webui-dcm from ~CAUCHY.KE/decision-webui-dcm:feature/x to feature/x

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

Loading…
Cancel
Save