Commit 217e2a28 authored by Cedric Caffy's avatar Cedric Caffy
Browse files

[catalogue] Modified the query for inserting tapefiles with RdbmsCatalogue

parent cf43925e
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment