tryalter aanscherping
svn path=/Database/trunk/; revision=19151
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user