diff --git a/server/src/manager/SqlDataManager.cpp b/server/src/manager/SqlDataManager.cpp index fef3f2d..518315d 100644 --- a/server/src/manager/SqlDataManager.cpp +++ b/server/src/manager/SqlDataManager.cpp @@ -85,6 +85,10 @@ inline bool execute_commands(sql::SqlManager* sql, std::string& error, const std for(const auto& cmd : commands) { std::string command{cmd}; + command.erase(command.begin(), std::find_if(command.begin(), command.end(), [](int ch) { + return !std::isspace(ch); + })); + if(command.starts_with("[INSERT_OR_IGNORE]")) command = insert_or_ignore + command.substr(18);