tryalter aanscherping

svn path=/Database/trunk/; revision=19151
This commit is contained in:
Jos Groot Lipman
2013-09-18 10:21:01 +00:00
parent 06db0f2902
commit 5e2542636c

View File

@@ -86,15 +86,15 @@ AS
EXCEPTION
WHEN OTHERS
THEN
IF SQLCODE IN (-942, -1418, -2289, -4043, -4080)
IF SQLCODE IN (-942, -1418, -2289, -4043, -4080, -2443)
THEN
-- did not exist, voor table, view, index, sequence, object and trigger
DBMS_OUTPUT.put_line ('Not found, not altered: ' || n);
-- did not exist, voor table, view, index, sequence, object and trigger, constraint
DBMS_OUTPUT.put_line ('Not found, not altered: ' || n);
NULL;
ELSIF SQLCODE IN (-955)
THEN
-- object already exist
DBMS_OUTPUT.put_line ('Already exists, not altered: ' || n);
DBMS_OUTPUT.put_line ('Already exists, not altered: ' || n);
NULL;
ELSE
raise_application_error (-20001, 'Error trying to ALTER ' || n || ': ' || SQLERRM);