You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sql/functions.sql
+1-5Lines changed: 1 addition & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -322,7 +322,6 @@ CREATE OR REPLACE FUNCTION railway_train_protection_rank(
322
322
asfa TEXT,
323
323
ptc TEXT,
324
324
zsi127 TEXT,
325
-
ctcs TEXT,
326
325
etcs TEXT,
327
326
construction_etcs TEXT) RETURNS INTEGERAS $$
328
327
BEGIN
@@ -331,9 +330,6 @@ BEGIN
331
330
END IF;
332
331
IF ptc <>'no' THEN
333
332
RETURN 10;
334
-
END IF;
335
-
IF ctcs <>'no' THEN
336
-
RETURN 10;
337
333
END IF;
338
334
IF construction_etcs <>'no' THEN
339
335
RETURN 9;
@@ -365,7 +361,7 @@ BEGIN
365
361
IF pzb ='yes' THEN
366
362
RETURN 2;
367
363
END IF;
368
-
IF (pzb ='no'AND lzb ='no'AND etcs ='no') OR (atb ='no'AND etcs ='no') OR (atc ='no'AND etcs ='no') OR (scmt ='no'AND etcs ='no') OR (asfa ='no'AND etcs ='no') OR (kvb ='no'AND tvm ='no'AND etcs ='no') OR (zsi127 ='no') OR (ctcs ='no') THEN
364
+
IF (pzb ='no'AND lzb ='no'AND etcs ='no') OR (atb ='no'AND etcs ='no') OR (atc ='no'AND etcs ='no') OR (scmt ='no'AND etcs ='no') OR (asfa ='no'AND etcs ='no') OR (kvb ='no'AND tvm ='no'AND etcs ='no') OR (zsi127 ='no') THEN
0 commit comments