fixed GH #1171: Poco::Data::RecordSet: rowCount not reset after execute

This commit is contained in:
Guenter Obiltschnig
2016-03-04 14:03:25 +01:00
parent f524aae508
commit 830894792d

View File

@@ -125,9 +125,9 @@ void StatementImpl::assignSubTotal(bool doReset, size_t firstDs)
if (_extractors[counter].size())
{
if (doReset)
*it += CountVec::value_type(_extractors[counter][0]->numOfRowsHandled());
else
*it = CountVec::value_type(_extractors[counter][0]->numOfRowsHandled());
else
*it += CountVec::value_type(_extractors[counter][0]->numOfRowsHandled());
}
}
}