Oracle Trigger

20 views
Skip to first unread message

Pablo Szittyay

unread,
Aug 8, 2018, 8:31:21 AM8/8/18
to DbUp Discuss
I am testing DbUp and found that there is an error with some Oracle scripts for example a Trigger like this

CREATE OR REPLACE TRIGGER aa_1_ins
BEFORE INSERT ON aa_1 
FOR EACH ROW 
BEGIN 
SELECT aa_1_sequence.NEXTVAL INTO :NEW.ID FROM dual;
END;

is parsed into 2 scripts, because it is parsing until the semicolon, so the scripts runs with error the following script wich is invalid.

CREATE OR REPLACE TRIGGER aa_1_ins
BEFORE INSERT ON aa_1 
FOR EACH ROW 
BEGIN 
SELECT aa_1_sequence.NEXTVAL INTO :NEW.ID FROM dual


Reply all
Reply to author
Forward
0 new messages