Skip to content
Snippets Groups Projects
Commit 4174d294 authored by Zoltan Mathe's avatar Zoltan Mathe
Browse files

event type has to be number

parent bbc50d7b
No related branches found
No related tags found
No related merge requests found
......@@ -224,7 +224,7 @@ procedure getFileDesJobId(v_Filename varchar2, a_Cursor out udt_RefCursor);
procedure getAllMetadata(v_jobid NUMBER, v_prod number, a_Cursor out udt_RefCursor);
function getProducedEvents(v_prodid number) return number;
procedure bulkgetIdsFromFiles(lfns varchararray, a_Cursor out udt_RefCursor);
PROCEDURE insertProdnOutputFtypes(v_production number, v_stepid number, v_filetypeid number, v_visible char, v_eventtype varchar2);
PROCEDURE insertProdnOutputFtypes(v_production number, v_stepid number, v_filetypeid number, v_visible char, v_eventtype number);
end;
/
......@@ -2296,12 +2296,13 @@ FOR i in lfns.FIRST .. lfns.LAST LOOP
open a_Cursor for select FILENAME, jobid, fileid, filetypeid from table(lfnmeta);
END;
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
PROCEDURE insertProdnOutputFtypes(v_production number, v_stepid number, v_filetypeid number, v_visible char, v_eventtype varchar2)IS
PROCEDURE insertProdnOutputFtypes(v_production number, v_stepid number, v_filetypeid number, v_visible char, v_eventtype number)IS
BEGIN
INSERT INTO productionoutputfiles(production, stepid, filetypeid, visible, eventtypeid)VALUES(v_production,v_stepid, v_filetypeid, v_visible,v_eventtype);
COMMIT;
EXCEPTION
WHEN DUP_VAL_ON_INDEX THEN
DBMS_OUTPUT.put_line ('EXISTS:'||v_production||'->'||v_stepid||'->'||v_filetypeid||'->'||v_visible||'->'||v_eventtype);
UPDATE productionoutputfiles SET stepid=v_stepid, filetypeid=v_filetypeid, visible = v_visible,eventtypeid=v_eventtype WHERE production=v_production;
END;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment