Commit aea06d98 authored by Steven Murray's avatar Steven Murray
Browse files

Fixed a bug introduced with the previous commit

concerning this issue.
parent 59d65ba0
......@@ -1731,9 +1731,7 @@ std::list<common::dataStructures::Tape> RdbmsCatalogue::getTapes(rdbms::PooledCo
"LAST_UPDATE_HOST_NAME AS LAST_UPDATE_HOST_NAME,"
"LAST_UPDATE_TIME AS LAST_UPDATE_TIME "
"FROM "
"TAPE "
"ORDER BY "
"VID";
"TAPE";
if(searchCriteria.vid||
searchCriteria.logicalLibrary||
......@@ -1781,6 +1779,8 @@ std::list<common::dataStructures::Tape> RdbmsCatalogue::getTapes(rdbms::PooledCo
sql += " LBP_IS_ON = :LBP_IS_ON";
}
sql += " ORDER BY VID";
auto stmt = conn.createStmt(sql, rdbms::Stmt::AutocommitMode::OFF);
if(searchCriteria.vid) stmt->bindString(":VID", searchCriteria.vid.value());
......
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