From c1f81772d4777c9491a7efb4774329ee92750d9f Mon Sep 17 00:00:00 2001 From: hongyiqin Date: Thu, 11 Aug 2022 02:07:07 +0100 Subject: [PATCH] Update PlayerbotMgr.cpp Fix sql syntax --- src/PlayerbotMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PlayerbotMgr.cpp b/src/PlayerbotMgr.cpp index 7527793a..191994b7 100644 --- a/src/PlayerbotMgr.cpp +++ b/src/PlayerbotMgr.cpp @@ -958,7 +958,7 @@ void PlayerbotMgr::OnPlayerLogin(Player* player) return; uint32 accountId = player->GetSession()->GetAccountId(); - QueryResult results = CharacterDatabase.Query("SELECT name FROM characters WHERE account = {}'", accountId); + QueryResult results = CharacterDatabase.Query("SELECT name FROM characters WHERE account = {}", accountId); if (results) { std::ostringstream out;