also trydrop for nonexistent triggers

svn path=/Database/trunk/; revision=11172
This commit is contained in:
Peter Feij
2012-03-27 14:30:22 +00:00
parent e9d67a4872
commit 4b7681b947

View File

@@ -1,5 +1,5 @@
/* $Revision: 2 $
* $Modtime: 22-02-12 14:20 $
/* $Revision: 3 $
* $Modtime: 27-03-12 16:29 $
*/
CREATE OR REPLACE PACKAGE adm
@@ -61,9 +61,9 @@ AS
EXCEPTION
WHEN OTHERS
THEN
IF SQLCODE IN (-942, -1418, -2289, -4043)
IF SQLCODE IN (-942, -1418, -2289, -4043, -4080)
THEN
-- did not exist, voor table, view, index, sequence en object
-- did not exist, voor table, view, index, sequence, object and trigger
NULL;
ELSE
raise_application_error (-20001, 'Error trying to DROP ' || n || ': ' || SQLERRM);
@@ -73,4 +73,4 @@ AS
END adm;
/
REGISTERRUN('$Workfile: ADM_PAC.SRC $','$Revision: 2 $')
REGISTERRUN('$Workfile: ADM_PAC.SRC $','$Revision: 3 $')