1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-20 17:17:13 +02:00

Implement field selection in the MySQL library.

This commit is contained in:
Sandu Liviu Catalin
2020-04-10 10:12:05 +03:00
parent a7f8584661
commit 15532298dc
4 changed files with 71 additions and 6 deletions
module
sqrat/sqrat

@ -20,7 +20,7 @@ void Area::AddArray(const Sqrat::Array & a)
{
float values[2];
a.Foreach([this, &values, n = int(0)](HSQUIRRELVM vm) mutable -> bool {
a.Foreach([this, &values, n = int(0)](HSQUIRRELVM vm, SQInteger i) mutable -> SQRESULT {
// Retrieve the type of the value
const SQObjectType type = sq_gettype(vm, -1);
// Are we dealing with a vector?
@ -44,7 +44,7 @@ void Area::AddArray(const Sqrat::Array & a)
}
}
// Ignore anything else
return true;
return SQ_OK;
});
}
#pragma clang diagnostic pop