diff --git a/common/database.cpp b/common/database.cpp index 6e1b7d92e..d150801b6 100644 --- a/common/database.cpp +++ b/common/database.cpp @@ -741,7 +741,7 @@ bool Database::SetVariable(const std::string& name, const std::string& value) auto l = VariablesRepository::GetWhere( *this, fmt::format( - "`name` = '{}'", + "`varname` = '{}'", Strings::Escape(name) ) );