aboutsummaryrefslogtreecommitdiff
path: root/src/server/database/Updater/UpdateFetcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/database/Updater/UpdateFetcher.cpp')
-rw-r--r--src/server/database/Updater/UpdateFetcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/database/Updater/UpdateFetcher.cpp b/src/server/database/Updater/UpdateFetcher.cpp
index 9eb27231d18..659b919cf3d 100644
--- a/src/server/database/Updater/UpdateFetcher.cpp
+++ b/src/server/database/Updater/UpdateFetcher.cpp
@@ -412,7 +412,7 @@ void UpdateFetcher::CleanUp(AppliedFileStorage const& storage) const
void UpdateFetcher::UpdateState(std::string const& name, State const state) const
{
- std::string const update = "UPDATE `updates` SET `state`=\'" + AppliedFileEntry::StateConvert(state) + "\' WHERE `name`=\"" + name + "\"";
+ std::string const update = Trinity::StringFormat(R"(UPDATE `updates` SET `state`='{}' WHERE `name`="{}")", AppliedFileEntry::StateConvert(state), name);
// Update database
_apply(update);