I have three triggers in a SQL file generating an Oracle base. When i start the file, i have no message of "Trigger created" and it seems that execution is locked at the trigger creation (i have creation confirmation for everything before).
Can you help me ? Here are the triggers :
CREATE TRIGGER TrainInfo_nbDispo1e_update_tr
BEFORE UPDATE ON TrainInfo
FOR EACH ROW
BEGIN
IF :NEW.nbDispo1e != :OLD.nbDispo1e
THEN
RAISE_APPLICATION_ERROR(-20101, 'Blahblahblah');
END IF;
END;
CREATE TRIGGER TrainInfo_nbDispo2e_update_tr
BEFORE UPDATE ON TrainInfo
FOR EACH ROW
BEGIN
IF :NEW.nbDispo2e != :OLD.nbDispo2e
THEN
RAISE_APPLICATION_ERROR(-20101, 'Blahblahblah');
END IF;
END;
CREATE TRIGGER Trajet_Distance_update_tr
BEFORE UPDATE ON Trajets
FOR EACH ROW
BEGIN
IF :NEW.distance != :OLD.distance
THEN
RAISE_APPLICATION_ERROR(-20101, 'Blahblahblah');
END IF;
END;