Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
217e2a28
Commit
217e2a28
authored
Nov 27, 2020
by
Cedric Caffy
Browse files
[catalogue] Modified the query for inserting tapefiles with RdbmsCatalogue
parent
cf43925e
Changes
1
Hide whitespace changes
Inline
Side-by-side
catalogue/RdbmsCatalogue.cpp
View file @
217e2a28
...
...
@@ -7783,7 +7783,10 @@ void RdbmsCatalogue::insertTapeFile(
const
char
*
const
sql
=
"DELETE FROM "
"TAPE_FILE "
"WHERE COPY_NB=:COPY_NB AND (VID<>:VID OR TAPE_FILE.FSEQ<>:FSEQ) AND TAPE_FILE.ARCHIVE_FILE_ID=:ARCHIVE_FILE_ID"
;
"WHERE "
"COPY_NB=:COPY_NB AND "
"(VID<>:VID OR TAPE_FILE.FSEQ<>:FSEQ) AND "
"TAPE_FILE.ARCHIVE_FILE_ID=:ARCHIVE_FILE_ID"
;
auto
stmt
=
conn
.
createStmt
(
sql
);
stmt
.
bindUint8
(
":COPY_NB"
,
tapeFile
.
copyNb
);
stmt
.
bindString
(
":VID"
,
tapeFile
.
vid
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment