std::size_t StatementImpl::executeWithoutLimit()
{
poco_assert (_state != ST_DONE);
std::size_t count = 0;
do
{
bind();
while (hasNext()) count += next();
} while (canBind());
return count ? count : affectedRowCount();
}
if i get one row by key like this "SELECT ID, [Name], Age FROM Test WHERE ID = 1",
Statement stmt(*_pSession << sql);
std::size_t size = stmt.execute();
if this record don't exsit, but the execute() get 1 return, why affectedRowCount is 1? alex help?





