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

Fix the execute function which could execute an empty query.

This commit is contained in:
Sandu Liviu Catalin 2016-07-10 05:30:01 +03:00
parent d36118272a
commit 907df6966f

View File

@ -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");
}