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:
parent
d2719a5223
commit
c9184727f0
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user