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

@@ -50,7 +50,7 @@ protected:
virtual std::size_t columnsReturned() const;
/// Returns number of columns returned by query.
virtual std::size_t affectedRowCount() const;
virtual int affectedRowCount() const;
/// Returns the number of affected rows.
/// Used to find out the number of rows affected by insert, delete or update.

View File

@@ -64,7 +64,7 @@ public:
bool fetchColumn(std::size_t n, MYSQL_BIND *bind);
/// Fetches the column.
std::size_t getAffectedRowCount() const;
int getAffectedRowCount() const;
operator MYSQL_STMT* ();
/// Cast operator to native handle type.
@@ -78,7 +78,7 @@ private:
MYSQL* _pSessionHandle;
MYSQL_STMT* _pHandle;
int _state;
std::size_t _affectedRowCount;
int _affectedRowCount;
std::string _query;
};