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

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

This commit is contained in:
Sandu Liviu Catalin 2018-07-30 01:08:13 +03:00
parent 89734ae1b2
commit 7a630cb6bf
3 changed files with 9 additions and 9 deletions

View File

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

View File

@ -118,7 +118,7 @@ Int32 ConnHnd::Flush(Uint32 num, Object & env, Function & func)
try try
{ {
// Ask the callback whether the query processing should end here // Ask the callback whether the query processing should end here
SharedPtr< bool > ret = callback.Evaluate< bool, Int32, const String & >(mStatus, *itr); SharedPtr< bool > ret = callback.Evaluate< bool >(mStatus, *itr);
// Should we break here? // Should we break here?
if (!!ret && (*ret == false)) if (!!ret && (*ret == false))
{ {

View File

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