1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-19 03:57:14 +01:00

Update the MySQL module to comply with the new StackStrF changes.

This commit is contained in:
Sandu Liviu Catalin 2018-07-30 01:10:26 +03:00
parent 7a630cb6bf
commit 53564d6136
2 changed files with 10 additions and 10 deletions

View File

@ -179,9 +179,9 @@ SQInteger Connection::ExecuteF(HSQUIRRELVM vm)
return sq_throwerror(vm, e.what());
}
// Attempt to retrieve the value from the stack as a string
StackStrF val(vm, 2, true);
StackStrF val(vm, 2);
// Have we failed to retrieve the string?
if (SQ_FAILED(val.mRes))
if (SQ_FAILED(val.Proc(true)))
{
return val.mRes; // Propagate the error!
}
@ -246,9 +246,9 @@ SQInteger Connection::InsertF(HSQUIRRELVM vm)
return sq_throwerror(vm, e.what());
}
// Attempt to retrieve the value from the stack as a string
StackStrF val(vm, 2, true);
StackStrF val(vm, 2);
// Have we failed to retrieve the string?
if (SQ_FAILED(val.mRes))
if (SQ_FAILED(val.Proc(true)))
{
return val.mRes; // Propagate the error!
}
@ -319,9 +319,9 @@ SQInteger Connection::QueryF(HSQUIRRELVM vm)
return sq_throwerror(vm, e.what());
}
// Attempt to retrieve the value from the stack as a string
StackStrF val(vm, 2, true);
StackStrF val(vm, 2);
// Have we failed to retrieve the string?
if (SQ_FAILED(val.mRes))
if (SQ_FAILED(val.Proc(true)))
{
return val.mRes; // Propagate the error!
}

View File

@ -211,9 +211,9 @@ void Field::SetIndex(const Object & field)
case OT_STRING:
{
// Obtain the object from the stack as a string
const StackStrF val(vm, -1, false);
StackStrF val(vm, -1);
// Validate the result
if (SQ_FAILED(val.mRes))
if (SQ_FAILED(val.Proc(false)))
{
STHROWF("%s", LastErrorString(vm).c_str());
}
@ -236,9 +236,9 @@ void Field::SetIndex(const Object & field)
case OT_INSTANCE:
{
// Obtain the object from the stack as a string
const StackStrF val(vm, -1, false);
StackStrF val(vm, -1);
// Validate the result
if (SQ_FAILED(val.mRes))
if (SQ_FAILED(val.Proc(false)))
{
STHROWF("%s", LastErrorString(vm).c_str());
}