Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open-source
OSE
Commits
cb7caed5
Commit
cb7caed5
authored
Aug 31, 2021
by
Antony Le Courtes
Browse files
Merge remote-tracking branch 'origin/master'
parents
445a38c9
79a01dd3
Changes
1
Show whitespace changes
Inline
Side-by-side
data/ddl/trigger/INTERVENANT_CK.sql
View file @
cb7caed5
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment