propagate the RowFormatter change to the Row collection

This commit is contained in:
Aleksandar Fabijanic
2009-10-02 18:25:40 +00:00
parent 10bdb05987
commit e1d57cf0dc
2 changed files with 13 additions and 1 deletions

View File

@@ -309,6 +309,16 @@ bool RecordSet::moveLast()
}
void RecordSet::setRowFormatter(RowFormatter* pRowFormatter)
{
pRowFormatter->setTotalRowCount(getTotalRowCount());
Statement::setRowFormatter(pRowFormatter);
RowMap::iterator it = _rowMap.begin();
RowMap::iterator end = _rowMap.end();
for (; it != end; ++it) it->second->setFormatter(getRowFormatter());
}
std::ostream& RecordSet::copyValues(std::ostream& os, std::size_t offset, std::size_t length) const
{
RowIterator itBegin = *_pBegin + offset;