mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-14 23:07:56 +02:00
GH #499: Poco::Data::Statement::execute returns wrong value when zero results (ODBC)
This commit is contained in:
@@ -42,7 +42,7 @@ std::size_t MySQLStatementImpl::columnsReturned() const
|
||||
}
|
||||
|
||||
|
||||
std::size_t MySQLStatementImpl::affectedRowCount() const
|
||||
int MySQLStatementImpl::affectedRowCount() const
|
||||
{
|
||||
return _stmt.getAffectedRowCount();
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user