added amb281 - multiple result sets for MySQL

This commit is contained in:
David Anderson
2007-10-22 21:31:02 +00:00
parent 2d737970d0
commit a86b1c5097
16 changed files with 150 additions and 5 deletions

View File

@ -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

View File

@ -164,3 +164,8 @@ void SqliteResultSet::Rewind()
m_CurRow = 1;
m_CurIndex = (m_CurRow * m_Columns);
}
bool SqliteResultSet::NextResultSet()
{
return false;
}

View File

@ -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: