1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Return something.

This commit is contained in:
Sandu Liviu Catalin 2020-04-27 11:42:21 +03:00
parent 42a0d2ed62
commit 48005a98f0

View File

@ -2671,6 +2671,8 @@ Array ResultSet::FetchFieldsArray(Array & fields) const
field.SetIndex(Object(-1, vm));
// Insert a copy of the field instance into the array
arr.SetValue(i, field);
// We're good
return SQ_OK;
});
// Return the resulted array
return arr;
@ -2726,6 +2728,8 @@ Table ResultSet::FetchFieldsTable(Array & fields) const
field.SetIndex(Object(-1, vm));
// Insert a copy of the field instance into the table
tbl.SetValue((pfields[field.GetIndex()].name == nullptr) ? ToStrF("<field_%ld>", field.GetIndex()) : pfields[field.GetIndex()].name, field);
// We're good
return SQ_OK;
});
// Return the resulted array
return tbl;