Good morning.
I have a strange situation here and I hope that someone can help me to find out why it is happening.
I have created a trigger as shown bellow;
CREATE OR REPLACE TRIGGER "TRG_RO_TEST"
BEFORE INSERT OR UPDATE OF "APPLICATION", "CLASSIFIED", "CREATION_DATE",
"LAST_ACCESS_TIME", "LAST_EDIT_DATE", "OBJ_DATE",
"PD_OBJ_TYPE", "READONLY_DATE", "RIMSOFFICIAL", "STATUS"
ON "PROFILE"
FOR EACH ROW
WHEN (NEW.APPLICATION = 113517)
BEGIN
:NEW.READONLY_DATE := ld.CREATION_DATE;
:NEW.STATUS := 19;
:NEW.OBJ_DATE := SYSDATE;
:NEW.RIMSOFFICIAL := 1;
:NEW.CLASSIFIED := 1;
END;
Now the problem I have with that is when I create the trigger in the database. It remove the line
(NEW.APPLICATION = 113517) and tell me that trigger was created with success. Why is it removing my WHEN condition?
I have a strange situation here and I hope that someone can help me to find out why it is happening.
I have created a trigger as shown bellow;
CREATE OR REPLACE TRIGGER "TRG_RO_TEST"
BEFORE INSERT OR UPDATE OF "APPLICATION", "CLASSIFIED", "CREATION_DATE",
"LAST_ACCESS_TIME", "LAST_EDIT_DATE", "OBJ_DATE",
"PD_OBJ_TYPE", "READONLY_DATE", "RIMSOFFICIAL", "STATUS"
ON "PROFILE"
FOR EACH ROW
WHEN (NEW.APPLICATION = 113517)
BEGIN
:NEW.READONLY_DATE := ld.CREATION_DATE;
:NEW.STATUS := 19;
:NEW.OBJ_DATE := SYSDATE;
:NEW.RIMSOFFICIAL := 1;
:NEW.CLASSIFIED := 1;
END;
Now the problem I have with that is when I create the trigger in the database. It remove the line
(NEW.APPLICATION = 113517) and tell me that trigger was created with success. Why is it removing my WHEN condition?