mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-08 11:02:17 +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;
|
||||
/// Don't hide base class method.
|
||||
|
||||
void reset(const Statement& stmt);
|
||||
RecordSet& reset(const Statement& stmt);
|
||||
/// Resets the RecordSet and assigns a new statement.
|
||||
/// Should be called after the given statement has been reset,
|
||||
/// 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;
|
||||
_pBegin = 0;
|
||||
@ -107,6 +107,8 @@ void RecordSet::reset(const Statement& stmt)
|
||||
|
||||
_pBegin = new RowIterator(this, 0 == rowsExtracted());
|
||||
_pEnd = new RowIterator(this, true);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user