clang build

This commit is contained in:
Alex Fabijanic
2015-02-12 21:58:41 -06:00
parent 07a2529d9d
commit edafbf9c08
6 changed files with 64 additions and 11 deletions

View File

@@ -301,11 +301,18 @@ bool RecordSet::moveLast()
void RecordSet::setRowFormatter(RowFormatter::Ptr pRowFormatter)
{
pRowFormatter->setTotalRowCount(static_cast<int>(getTotalRowCount()));
Statement::setRowFormatter(pRowFormatter);
RowMap::iterator it = _rowMap.begin();
RowMap::iterator end = _rowMap.end();
for (; it != end; ++it) it->second->setFormatter(getRowFormatter());
if (pRowFormatter)
{
if (pRowFormatter->getTotalRowCount() == RowFormatter::INVALID_ROW_COUNT)
pRowFormatter->setTotalRowCount(static_cast<int>(getTotalRowCount()));
Statement::setRowFormatter(pRowFormatter);
RowMap::iterator it = _rowMap.begin();
RowMap::iterator end = _rowMap.end();
for (; it != end; ++it) it->second->setFormatter(getRowFormatter());
}
else
throw NullPointerException("Null RowFormatter in RecordSet.");
}