Commit 4b164de1 authored by Sebastien Ponce's avatar Sebastien Ponce
Browse files

Fixed bug #104139: Cleaning logic should be more resilient to constraint violation errors

parent fdeb90cb
......@@ -747,7 +747,7 @@ BEGIN
FOR i IN 1 .. dcIds.COUNT LOOP
DECLARE
CONSTRAINT_VIOLATED EXCEPTION;
PRAGMA EXCEPTION_INIT(CONSTRAINT_VIOLATED, -1);
PRAGMA EXCEPTION_INIT(CONSTRAINT_VIOLATED, -2292);
BEGIN
DELETE FROM DiskCopy WHERE id = dcIds(i);
EXCEPTION WHEN CONSTRAINT_VIOLATED THEN
......
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