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

@@ -416,7 +416,7 @@ private:
Mutex _mutex;
AsyncExecMethodPtr _pAsyncExec;
std::vector<Any> _arguments;
RowFormatter::Ptr _pRowFormatter;
RowFormatter::Ptr _pRowFormatter;
mutable std::string _stmtString;
};

View File

@@ -161,9 +161,13 @@ protected:
virtual std::size_t columnsReturned() const = 0;
/// Returns number of columns returned by query.
virtual std::size_t affectedRowCount() const = 0;
virtual int affectedRowCount() const = 0;
/// Returns the number of affected rows.
/// Used to find out the number of rows affected by insert, delete or update.
///
/// Some back-ends may return a negative number in certain circumstances (e.g.
/// some ODBC drivers when this function is called after a select statement
/// execution).
virtual const MetaColumn& metaColumn(std::size_t pos) const = 0;
/// Returns column meta data.