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

Put the cursor at the begining of the buffer when retrieving an SQLite blob.

This commit is contained in:
Sandu Liviu Catalin 2017-05-25 22:14:28 +03:00
parent 3ce06d8cbc
commit df5eedfced

View File

@ -462,7 +462,7 @@ Object Column::GetBuffer() const
// Retrieve the the actual blob data that must be returned
CCStr data = reinterpret_cast< CCStr >(sqlite3_column_blob(m_Handle->mPtr, m_Index));
// Attempt to create a buffer with the blob data on the stack
if (SQ_FAILED(SqMod_PushBufferData(DefaultVM::Get(), data, size, size)))
if (SQ_FAILED(SqMod_PushBufferData(DefaultVM::Get(), data, size, 0)))
{
STHROWF("Unable to allocate buffer of at least (%d) bytes", size);
}