mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-09 11:17:31 +01:00
make RecordSet::reset(stmt) return a reference to itself
This commit is contained in:
parent
bc27086003
commit
115edb9605
@ -323,7 +323,7 @@ public:
|
|||||||
using Statement::reset;
|
using Statement::reset;
|
||||||
/// Don't hide base class method.
|
/// Don't hide base class method.
|
||||||
|
|
||||||
void reset(const Statement& stmt);
|
RecordSet& reset(const Statement& stmt);
|
||||||
/// Resets the RecordSet and assigns a new statement.
|
/// Resets the RecordSet and assigns a new statement.
|
||||||
/// Should be called after the given statement has been reset,
|
/// Should be called after the given statement has been reset,
|
||||||
/// assigned a new SQL statement, and executed.
|
/// assigned a new SQL statement, and executed.
|
||||||
|
@ -89,7 +89,7 @@ RecordSet::~RecordSet()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void RecordSet::reset(const Statement& stmt)
|
RecordSet& RecordSet::reset(const Statement& stmt)
|
||||||
{
|
{
|
||||||
delete _pBegin;
|
delete _pBegin;
|
||||||
_pBegin = 0;
|
_pBegin = 0;
|
||||||
@ -107,6 +107,8 @@ void RecordSet::reset(const Statement& stmt)
|
|||||||
|
|
||||||
_pBegin = new RowIterator(this, 0 == rowsExtracted());
|
_pBegin = new RowIterator(this, 0 == rowsExtracted());
|
||||||
_pEnd = new RowIterator(this, true);
|
_pEnd = new RowIterator(this, true);
|
||||||
|
|
||||||
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user