From 3d65ceb11777b9530570d207bb996a629fbd6ae2 Mon Sep 17 00:00:00 2001 From: Ernest Litvinenko Date: Fri, 28 Jun 2024 12:11:48 +0300 Subject: [PATCH] Format code --- 32_7.sql | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/32_7.sql b/32_7.sql index de5335f..c634671 100644 --- a/32_7.sql +++ b/32_7.sql @@ -1,4 +1,4 @@ -execute block ( +execute block ( IN_ID_APP_EVENT D_BIGINT = :IN_ID_APP_EVENT) returns ( output D_SMALLINT) @@ -75,7 +75,8 @@ begin if (:F_APP_EVENT_VID = 8795 /*Создание уведомления*/ ) then F_OPER = 1; - else begin + else + begin output = -2;/*Неизвестная операция*/ suspend; exit; @@ -126,9 +127,11 @@ begin end update or insert into APP_NOTE (ID_APP_NOTE, APP_NOTE_ID_SOTR, APP_NOTE_ID_APP_TASK, APP_NOTE_STATUS, APP_NOTE_TIP, - APP_NOTE_TEXT, APP_NOTE_DEL, APP_NOTE_CR, APP_NOTE_WCR, APP_NOTE_CH, APP_NOTE_WCH) + APP_NOTE_TEXT, APP_NOTE_DEL, APP_NOTE_CR, APP_NOTE_WCR, APP_NOTE_CH, APP_NOTE_WCH) values (:NEW_ID_APP_NOTE, :NEW_APP_NOTE_ID_SOTR, :NEW_APP_NOTE_ID_APP_TASK, :NEW_APP_NOTE_STATUS, :NEW_APP_NOTE_TIP, - :NEW_APP_NOTE_TEXT, :NEW_APP_NOTE_DEL, :NEW_APP_NOTE_CR, :NEW_APP_NOTE_WCR, :NEW_APP_NOTE_CH, :NEW_APP_NOTE_WCH) + :NEW_APP_NOTE_TEXT, :NEW_APP_NOTE_DEL, :NEW_APP_NOTE_CR, :NEW_APP_NOTE_WCR, :NEW_APP_NOTE_CH, + :NEW_APP_NOTE_WCH) matching (ID_APP_NOTE); - end + suspend; +end \ No newline at end of file