GH #499: Poco::Data::Statement::execute returns wrong value when zero results (ODBC)

This commit is contained in:
Aleksandar Fabijanic
2014-12-17 23:36:26 -06:00
parent 55dffd864f
commit 86b81bfcbd
24 changed files with 80 additions and 18 deletions

View File

@@ -42,7 +42,7 @@ std::size_t MySQLStatementImpl::columnsReturned() const
}
std::size_t MySQLStatementImpl::affectedRowCount() const
int MySQLStatementImpl::affectedRowCount() const
{
return _stmt.getAffectedRowCount();
}

View File

@@ -132,7 +132,7 @@ bool StatementExecutor::fetchColumn(std::size_t n, MYSQL_BIND *bind)
return (res == 0);
}
std::size_t StatementExecutor::getAffectedRowCount() const
int StatementExecutor::getAffectedRowCount() const
{
return _affectedRowCount;
}