Correcion de new a NEW

This commit is contained in:
GID Projects 2020-06-27 09:44:02 -04:00
parent 9051360b8d
commit 937d843daa

View File

@ -11,9 +11,9 @@ BEGIN
SELECT MAX(ID_CIUDAD) INTO v_id_ciudad FROM CIUDAD; SELECT MAX(ID_CIUDAD) INTO v_id_ciudad FROM CIUDAD;
IF v_id_ciudad IS NULL THEN IF v_id_ciudad IS NULL THEN
: new.ID_CIUDAD := 1; : NEW.ID_CIUDAD := 1;
ELSE ELSE
: new.ID_CIUDAD := v_id_ciudad + 1; : NEW.ID_CIUDAD := v_id_ciudad + 1;
END IF; END IF;
END; END;