From 93079d16561d955f5add4a4545d36a2cf33c6ddb Mon Sep 17 00:00:00 2001 From: PriestJ Date: Thu, 19 Jun 2008 16:39:05 +0000 Subject: [PATCH] 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 --- Modules/mip_bulk_load.pck | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Modules/mip_bulk_load.pck b/Modules/mip_bulk_load.pck index bd9ee80..5b10543 100644 --- a/Modules/mip_bulk_load.pck +++ b/Modules/mip_bulk_load.pck @@ -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; /