added amb281 - multiple result sets for MySQL
This commit is contained in:
@ -61,6 +61,9 @@ namespace SourceMod
|
||||
* Resets back to the first row.
|
||||
*/
|
||||
virtual void Rewind() =0;
|
||||
|
||||
/* Always returns false in Sqlite */
|
||||
virtual bool NextResultSet() =0;
|
||||
};
|
||||
|
||||
struct QueryInfo
|
||||
|
@ -164,3 +164,8 @@ void SqliteResultSet::Rewind()
|
||||
m_CurRow = 1;
|
||||
m_CurIndex = (m_CurRow * m_Columns);
|
||||
}
|
||||
|
||||
bool SqliteResultSet::NextResultSet()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -39,6 +39,7 @@ namespace SourceMod
|
||||
int GetInt(unsigned int columnId);
|
||||
bool IsNull(unsigned int columnId);
|
||||
const char *GetRaw(unsigned int columnId, size_t *length);
|
||||
bool NextResultSet();
|
||||
private:
|
||||
const char *GetStringSafe(unsigned int columnId);
|
||||
private:
|
||||
|
Reference in New Issue
Block a user