Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LHCbDIRAC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Anton Lu
LHCbDIRAC
Commits
4174d294
Commit
4174d294
authored
7 years ago
by
Zoltan Mathe
Browse files
Options
Downloads
Patches
Plain Diff
event type has to be number
parent
bbc50d7b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
LHCbDIRAC/BookkeepingSystem/DB/oracle_schema_storedprocedures.sql
+3
-2
3 additions, 2 deletions
...C/BookkeepingSystem/DB/oracle_schema_storedprocedures.sql
with
3 additions
and
2 deletions
LHCbDIRAC/BookkeepingSystem/DB/oracle_schema_storedprocedures.sql
+
3
−
2
View file @
4174d294
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment