mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-02-21 20:27:13 +01:00
Fix the execute function which could execute an empty query.
This commit is contained in:
parent
d36118272a
commit
907df6966f
@ -173,7 +173,7 @@ Uint64 ConnHnd::Execute(CSStr query, Ulong size)
|
||||
size = std::strlen(query);
|
||||
}
|
||||
// Attempt to execute the specified query
|
||||
else if (mysql_real_query(mPtr, query, size))
|
||||
if (mysql_real_query(mPtr, query, size))
|
||||
{
|
||||
SQMOD_THROW_CURRENT(*this, "Unable to execute query");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user