mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-02-21 20:27:13 +01:00
Fix the .String property from the mysql database Field type.
This commit is contained in:
parent
f51b4968ac
commit
bfdb042442
@ -523,8 +523,12 @@ Object Field::GetString() const
|
|||||||
const StackGuard sg;
|
const StackGuard sg;
|
||||||
// Retrieve the value directly from the row and push it on the stack
|
// Retrieve the value directly from the row and push it on the stack
|
||||||
sq_pushstring(DefaultVM::Get(), m_Handle->mRow[m_Index], m_Handle->mLengths[m_Index]);
|
sq_pushstring(DefaultVM::Get(), m_Handle->mRow[m_Index], m_Handle->mLengths[m_Index]);
|
||||||
// Obtain the object from the stack and return it
|
// Obtain the object from the stack
|
||||||
return Var< Object >(DefaultVM::Get(), -1).value;
|
Object stro(-1, DefaultVM::Get());
|
||||||
|
// Restore the stack
|
||||||
|
sg.Restore();
|
||||||
|
// Return it the string object
|
||||||
|
return stro;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user