From 274e3d21425272b415f842aefd5ba10df4fe5c7e Mon Sep 17 00:00:00 2001 From: "Cauchy.Ke" Date: Mon, 23 May 2022 17:29:58 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-72078=20fix:=E4=BF=AE=E5=A4=8DInformix?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E8=BF=9E=E6=8E=A5=E7=9A=84URL=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/app.service.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/modules/app.service.ts b/src/modules/app.service.ts index 145b807..e35475f 100644 --- a/src/modules/app.service.ts +++ b/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)