1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Add a simple method to the MySQL statement handle to check the validity of a parameter index.

This commit is contained in:
Sandu Liviu Catalin 2016-07-28 01:24:52 +03:00
parent d2719a5223
commit c9184727f0

View File

@ -177,6 +177,14 @@ public:
void ValidateParam(Uint32 idx) const;
#endif // _DEBUG
/* --------------------------------------------------------------------------------------------
* Check whether a specific param index is within range.
*/
bool CheckParamIndex(Uint32 idx) const
{
return (idx < mParams);
}
/* --------------------------------------------------------------------------------------------
* Create the actual statement.
*/