implemented amb27 (SQL_Rewind)
fixed builds
This commit is contained in:
@ -57,6 +57,10 @@ namespace SourceMod
|
||||
* call IsDone() after each call to NextRow().
|
||||
*/
|
||||
virtual void NextRow() =0;
|
||||
/**
|
||||
* Resets back to the first row.
|
||||
*/
|
||||
virtual void Rewind() =0;
|
||||
};
|
||||
|
||||
struct QueryInfo
|
||||
|
@ -158,3 +158,9 @@ void SqliteResultSet::NextRow()
|
||||
{
|
||||
m_CurIndex = (++m_CurRow * m_Columns);
|
||||
}
|
||||
|
||||
void SqliteResultSet::Rewind()
|
||||
{
|
||||
m_CurRow = 1;
|
||||
m_CurIndex = (m_CurRow * m_Columns);
|
||||
}
|
||||
|
@ -27,6 +27,7 @@ namespace SourceMod
|
||||
bool IsDone();
|
||||
IResultRow *GetRow();
|
||||
void NextRow();
|
||||
void Rewind();
|
||||
public:
|
||||
/**
|
||||
* IResultRow
|
||||
|
Reference in New Issue
Block a user