Commit cb7caed5 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Merge remote-tracking branch 'origin/master'

parents 445a38c9 79a01dd3
......@@ -20,12 +20,6 @@ BEGIN
END IF;
-- Contrôle de l'unicité de SOURCE_CODE
SELECT COUNT(*) INTO cs FROM INTERVENANT WHERE id <> :NEW.id AND histo_destruction IS NULL AND source_code = :NEW.source_code AND annee_id = :NEW.annee_id AND statut_id = :NEW.statut_id;
IF cs > 0 THEN
raise_application_error(-20101, 'Une autre fiche intervenant contient la même valeur pour SOURCE_CODE.');
END IF;
-- Contrôle de l'unicité de STATUT_ID
SELECT COUNT(*) INTO cs FROM INTERVENANT WHERE
id <> :NEW.id AND histo_destruction IS NULL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment