mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 17:30:44 +02:00
Merge pull request #922 from dimanikulin/develop
fixed sql lite statement for empty extracts
This commit is contained in:
@@ -273,7 +273,15 @@ std::size_t SQLiteStatementImpl::next()
|
||||
}
|
||||
_stepCalled = false;
|
||||
if (_affectedRowCount == POCO_SQLITE_INV_ROW_CNT) _affectedRowCount = 0;
|
||||
_affectedRowCount += (*extracts.begin())->numOfRowsHandled();
|
||||
|
||||
if (extracts.size())
|
||||
_affectedRowCount += (*extracts.begin())->numOfRowsHandled();
|
||||
else
|
||||
{
|
||||
_stepCalled = true;
|
||||
_nextResponse = SQLITE_DONE;
|
||||
}
|
||||
|
||||
}
|
||||
else if (SQLITE_DONE == _nextResponse)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user