Skip to content
Snippets Groups Projects
Commit 10ecb365 authored by Sebastien Ponce's avatar Sebastien Ponce
Browse files

Fix on the order of parameter in updateRep SQL statement

parent 002905a8
Branches
Tags
No related merge requests found
......@@ -163,14 +163,14 @@ void castor::db::ora::OraCuuidCnv::updateRep(castor::IAddress* address,
alreadyDone.insert(obj);
// Now Update the current object
Cuuid_t content = obj->content();
m_updateStatement->setInt(1, obj->id());
m_updateStatement->setInt(2, content.time_low);
m_updateStatement->setInt(3, content.time_mid);
m_updateStatement->setInt(4, content.time_hi_and_version);
m_updateStatement->setInt(5, content.clock_seq_hi_and_reserved);
m_updateStatement->setInt(6, content.clock_seq_low);
m_updateStatement->setInt(1, content.time_low);
m_updateStatement->setInt(2, content.time_mid);
m_updateStatement->setInt(3, content.time_hi_and_version);
m_updateStatement->setInt(4, content.clock_seq_hi_and_reserved);
m_updateStatement->setInt(5, content.clock_seq_low);
std::string nodeS((char*)content.node, 6);
m_updateStatement->setString(7, nodeS);
m_updateStatement->setString(6, nodeS);
m_updateStatement->setInt(7, obj->id());
m_updateStatement->executeUpdate();
if (autocommit) {
connection()->commit();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment