diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-05-06 00:38:05 +0200 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2024-05-28 16:55:01 +0200 |
commit | 97191e2a1149b94c8a00207da2ab34b7a3f72347 (patch) | |
tree | d668cc9713b364e88d24056f02c872bd378636ae /src/server/database/Updater/UpdateFetcher.cpp | |
parent | 95628dc95a3e001c44a1eaca9f821135f0b45aa9 (diff) |
Core/Updater: Fix gcc warning
(cherry picked from commit b288fceb792b5571eb7b79033408588fe4bede24)
Diffstat (limited to 'src/server/database/Updater/UpdateFetcher.cpp')
-rw-r--r-- | src/server/database/Updater/UpdateFetcher.cpp | 2 |
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); |