Skip to content

Commit

Permalink
F OpenNebula#3393: fix minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian González committed Jun 3, 2019
1 parent de7f239 commit 4da4895
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vm/VirtualMachine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1809,9 +1809,9 @@ int VirtualMachine::update_search(SqlDB * db)
goto error_text;
}

oss << "REPLACE INTO " << table << " (search_token) VALUES ("
<< "'" << sql_text << "'"
<< ")";
oss << "UPDATE " << table << " SET search_token = "
<< "'" << sql_text << "'"
<< " WHERE oid = " << oid;

db->free_str(sql_text);

Expand Down

0 comments on commit 4da4895

Please sign in to comment.