mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 19:51:58 +01:00
GH #499: Poco::Data::Statement::execute returns wrong value when zero results (ODBC)
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user