mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 08:31:43 +02:00
This commit is contained in:
@@ -126,19 +126,18 @@ std::size_t StatementImpl::execute(const bool& reset)
|
|||||||
|
|
||||||
void StatementImpl::assignSubTotal(bool reset)
|
void StatementImpl::assignSubTotal(bool reset)
|
||||||
{
|
{
|
||||||
typedef CountVec::iterator IT;
|
|
||||||
if (_extractors.size() == _subTotalRowCount.size())
|
if (_extractors.size() == _subTotalRowCount.size())
|
||||||
{
|
{
|
||||||
IT it = _subTotalRowCount.begin();
|
CountVec::iterator it = _subTotalRowCount.begin();
|
||||||
IT end = _subTotalRowCount.end();
|
CountVec::iterator end = _subTotalRowCount.end();
|
||||||
for (int counter = 0; it != end; ++it, ++counter)
|
for (int counter = 0; it != end; ++it, ++counter)
|
||||||
{
|
{
|
||||||
if (_extractors[counter].size())
|
if (_extractors[counter].size())
|
||||||
{
|
{
|
||||||
if (reset)
|
if (reset)
|
||||||
*it += IT::value_type(_extractors[counter][0]->numOfRowsHandled());
|
*it += CountVec::value_type(_extractors[counter][0]->numOfRowsHandled());
|
||||||
else
|
else
|
||||||
*it = IT::value_type(_extractors[counter][0]->numOfRowsHandled());
|
*it = CountVec::value_type(_extractors[counter][0]->numOfRowsHandled());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user