Commit e076f114 authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

Related to bug CASTOR-3400:

fixed the remaining exception handlers in case of FK constraint violations,
which had the wrong error code and were thus never called.
parent 101cd6bd
......@@ -34,7 +34,7 @@ BEGIN
FROM DrainingJob WHERE status = dconst.DRAININGJOB_RUNNING) LOOP
DECLARE
CONSTRAINT_VIOLATED EXCEPTION;
PRAGMA EXCEPTION_INIT(CONSTRAINT_VIOLATED, -1);
PRAGMA EXCEPTION_INIT(CONSTRAINT_VIOLATED, -2292);
BEGIN
BEGIN
-- lock the draining job first
......
......@@ -420,7 +420,7 @@ BEGIN
ORDER BY cfId ASC) LOOP
DECLARE
CONSTRAINT_VIOLATED EXCEPTION;
PRAGMA EXCEPTION_INIT(CONSTRAINT_VIOLATED, -1);
PRAGMA EXCEPTION_INIT(CONSTRAINT_VIOLATED, -2292);
BEGIN
-- Get data and lock the castorFile
SELECT fileId, nsHost, fileClass
......
Supports Markdown
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