tENGO UN PROBLEMA EN ESTE TRIGGER, me da error en la linea 16 (v_gratificacion_posterior :=new.gratificacion;), y no entiendo porque
Código SQL:
Ver originalCREATE OR REPLACE TRIGGER audit_trigger BEFORE INSERT OR DELETE OR UPDATE OF gratificacion
ON PARTICIPAR FOR EACH ROW
DECLARE
v_gratificacion_anterior NUMBER;
v_gratificacion_posterior NUMBER;
BEGIN
SELECT osuser INTO v_usuario FROM v$session WHERE audsid=USERNV('SESSIONID');
IF INSERTING THEN
v_gratificacion_anterior :=NULL;
v_gratificacion_posterior :=NEW.gratificacion;
ELSIF DELETING THEN
v_gratificacion_anterior :=OLD.gratificacion;
v_gratificacion_posterior :=NULL;
ELSIF UPDATING THEN
v_gratificacion_anterior := OLD.gratificacion;
v_gratificacion_posterior :=NEW.gratificacion;
END IF;
INSERT INTO auditoria (usuario, codigoPonente, codigoConferencia, fecha, gratificacionAnterior, gratificacionPosterior)
VALUES(v_usuario, codPonente, refConferencia, sysdate, v_gratificacion_anterior, v_gratificacion_posterior);
END;