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
commit 05f18cb179
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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