feat(Core/DB): add support range loop for mysql result (#13355)

This commit is contained in:
Kargatum 2022-10-09 22:46:48 +03:00 committed by GitHub
parent 092710ff19
commit 8a334e8210
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 11 deletions

View file

@ -195,13 +195,14 @@ void AuthSession::CheckIpCallback(PreparedQueryResult result)
{
bool banned = false;
do
for (auto const& fields : *result)
{
Field* fields = result->Fetch();
if (fields[0].Get<uint64>() != 0)
{
banned = true;
} while (result->NextRow());
break;
}
}
if (banned)
{