SourceMod SDK
1.7
|
Public Member Functions | |
virtual IResultSet * | GetResultSet ()=0 |
Returns a pointer to the current result set, if any. More... | |
virtual bool | FetchMoreResults ()=0 |
Advances to the next result set if one exists. This is for checking for MORE result sets, and should not be used on the first result set. More... | |
virtual void | Destroy ()=0 |
Frees resources created by this query. | |
|
pure virtual |
Advances to the next result set if one exists. This is for checking for MORE result sets, and should not be used on the first result set.
Multiple results only happen in certain cases, such as CALLing stored procedure that have a SELECTs, where MySQL will return both the CALL status and one or more SELECT result sets. If you do not process these results, they will be automatically processed for you. However, the behaviour of creating a new query from the same connection while results are left unprocessed is undefined, and may result in a dropped connection. Therefore, process all extra results or destroy the IQuery pointer before starting a new query.
Again, this only happens in very specific cases, so there is no need to call this for normal queries.
After calling this function, GetResultSet() must be called again to return the result set. The previous result set is automatically destroyed and will be unusable.
|
pure virtual |
Returns a pointer to the current result set, if any.