Correct select randombot sql wildcard syntax error

This commit is contained in:
qudzy
2022-05-13 21:55:14 +02:00
parent faa452ad41
commit 5ba7da5faf

View File

@@ -249,7 +249,7 @@ void RandomPlayerbotFactory::CreateRandomBots()
} }
std::vector<std::future<void>> dels; std::vector<std::future<void>> dels;
QueryResult results = LoginDatabase.Query("SELECT id FROM account WHERE username LIKE ''{}'%%'", sPlayerbotAIConfig->randomBotAccountPrefix.c_str()); QueryResult results = LoginDatabase.Query("SELECT id FROM account WHERE username LIKE '{}%%'", sPlayerbotAIConfig->randomBotAccountPrefix.c_str());
if (results) if (results)
{ {
do do