From 1b8dd48398eb2a2af26e139d526dbf6b95f259b0 Mon Sep 17 00:00:00 2001 From: Murali <46283029+muralithiyagarajan@users.noreply.github.com> Date: Mon, 23 Mar 2020 14:53:40 +0530 Subject: [PATCH] Fix / remove extra backslash in Nokia query(#174) --- db/migrations/1571305538377_Add-Nokia-RAML-relations.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/db/migrations/1571305538377_Add-Nokia-RAML-relations.js b/db/migrations/1571305538377_Add-Nokia-RAML-relations.js index 33b0dd56..aeff6ec5 100644 --- a/db/migrations/1571305538377_Add-Nokia-RAML-relations.js +++ b/db/migrations/1571305538377_Add-Nokia-RAML-relations.js @@ -242,7 +242,7 @@ t2.data->>'name' AS "SRV CELL NAME", t1.data->>'name' AS "NBR CELL NAME" FROM nokia_cm."ADJS" t1 INNER JOIN nokia_cm."WCEL" t2 ON t1.data->>'FILENAME'=t2.data->>'FILENAME' - AND t2.data->>'DISTNAME' = SUBSTRING(t1.data->>'DISTNAME', '.*WCEL-\d+') + AND t2.data->>'DISTNAME' = SUBSTRING(t1.data->>'DISTNAME', '.*WCEL-\\d+') UNION ---3G-2G Relations (Nokia RAML) SELECT @@ -257,7 +257,7 @@ t2.data->>'name' AS "SRV CELL NAME", t1.data->>'name' AS "NBR CELL NAME" FROM nokia_cm."ADJG" t1 INNER JOIN nokia_cm."WCEL" t2 ON t1.data->>'FILENAME'=t2.data->>'FILENAME' - AND t2.data->>'DISTNAME' = SUBSTRING(t1.data->>'DISTNAME', '.*WCEL-\d+') + AND t2.data->>'DISTNAME' = SUBSTRING(t1.data->>'DISTNAME', '.*WCEL-\\d+') UNION ---2G-3G Relations (Nokia RAML) SELECT @@ -272,7 +272,7 @@ t2.data->>'name' AS "SRV CELL NAME", t1.data->>'name' AS "NBR CELL NAME" FROM nokia_cm."ADJW" t1 INNER JOIN nokia_cm."BTS" t2 ON t1.data->>'FILENAME'=t2.data->>'FILENAME' - AND t2.data->>'DISTNAME' = SUBSTRING(t1.data->>'DISTNAME', '.*BTS-\d+') + AND t2.data->>'DISTNAME' = SUBSTRING(t1.data->>'DISTNAME', '.*BTS-\\d+') UNION ---2G-2G Relations (Nokia RAML) SELECT @@ -287,7 +287,7 @@ t2.data->>'name' AS "SRV CELL NAME", t1.data->>'name' AS "NBR CELL NAME" FROM nokia_cm."ADCE" t1 INNER JOIN nokia_cm."BTS" t2 ON t1.data->>'FILENAME'=t2.data->>'FILENAME' - AND t2.data->>'DISTNAME' = SUBSTRING(t1.data->>'DISTNAME', '.*BTS-\d+') + AND t2.data->>'DISTNAME' = SUBSTRING(t1.data->>'DISTNAME', '.*BTS-\\d+') `;