altered in relation to ticket #519, the code was removing all drawings in the workspace, rather than just the current application. Removed redundant reference to the Init procedure at the start of the package and removed default value for the flow id so that the user must supply a correct flow_id.

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@5363 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
PriestJ
2008-06-19 16:39:05 +00:00
parent 8598e5adfa
commit 93079d1656

View File

@@ -4,8 +4,7 @@ CREATE OR REPLACE PACKAGE mip_bulk_load IS
-- Created : 08/01/2008 14:26:14
-- Purpose : Bulk data load routines
g_flow_id NUMBER DEFAULT nvl(apex_application.g_flow_id
,155);
g_flow_id NUMBER;
PROCEDURE init;
@@ -907,9 +906,10 @@ CREATE OR REPLACE PACKAGE BODY mip_bulk_load IS
WHEN dup_val_on_index THEN
NULL;
END;
--Shouldn't we add the flow id to this where clause to?
DELETE FROM wwv_flow_files
WHERE NAME LIKE '%/' || l_rec.filename;
WHERE NAME LIKE '%/' || l_rec.filename
and FLOW_ID = apex_application.g_flow_id;
DELETE FROM document_roles doro
WHERE doro.drwg_code = l_rec.drwg_code;
@@ -1837,7 +1837,5 @@ CREATE OR REPLACE PACKAGE BODY mip_bulk_load IS
END load_all;
BEGIN
init;
END mip_bulk_load;
/