Merge pull request #55 from qudzy/bug/sql-select-randombot-accounts

Correct select randombot sql wildcard syntax error
This commit is contained in:
ZhengPeiRu21
2022-05-16 13:10:16 -06:00
committed by GitHub

View File

@@ -249,7 +249,7 @@ void RandomPlayerbotFactory::CreateRandomBots()
}
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)
{
do