mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-02-21 20:27:13 +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;
|
void ValidateParam(Uint32 idx) const;
|
||||||
#endif // _DEBUG
|
#endif // _DEBUG
|
||||||
|
|
||||||
|
/* --------------------------------------------------------------------------------------------
|
||||||
|
* Check whether a specific param index is within range.
|
||||||
|
*/
|
||||||
|
bool CheckParamIndex(Uint32 idx) const
|
||||||
|
{
|
||||||
|
return (idx < mParams);
|
||||||
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
* Create the actual statement.
|
* Create the actual statement.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user