fixed GH #1461: Poco::Data::SQLite::SQLiteStatementImpl::next() error

This commit is contained in:
Guenter Obiltschnig 2016-12-07 13:05:24 +01:00
parent 77df1f6d3f
commit ba4a5af389

View File

@ -273,7 +273,10 @@ std::size_t SQLiteStatementImpl::next()
} }
_stepCalled = false; _stepCalled = false;
if (_affectedRowCount == POCO_SQLITE_INV_ROW_CNT) _affectedRowCount = 0; if (_affectedRowCount == POCO_SQLITE_INV_ROW_CNT) _affectedRowCount = 0;
_affectedRowCount += (*extracts.begin())->numOfRowsHandled(); if (extracts.begin() != extracts.end())
{
_affectedRowCount += (*extracts.begin())->numOfRowsHandled();
}
} }
else if (SQLITE_DONE == _nextResponse) else if (SQLITE_DONE == _nextResponse)
{ {