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

Minor fix in mysql module when executing update queries.

This commit is contained in:
Sandu Liviu Catalin 2016-07-10 05:04:57 +03:00
parent a89acef503
commit d36118272a

View File

@ -199,7 +199,7 @@ Uint64 ConnHnd::Execute(CSStr query, Ulong size)
// Sum the number of affected rows by this statement // Sum the number of affected rows by this statement
affected += mysql_affected_rows(mPtr); affected += mysql_affected_rows(mPtr);
} }
else else if (mysql_errno(mPtr) != 0)
{ {
SQMOD_THROW_CURRENT(*this, "Unable to count affected rows"); SQMOD_THROW_CURRENT(*this, "Unable to count affected rows");
} }