diff options
Diffstat (limited to 'core/Db/Adapter/Pdo/Mysql.php')
-rw-r--r-- | core/Db/Adapter/Pdo/Mysql.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/Db/Adapter/Pdo/Mysql.php b/core/Db/Adapter/Pdo/Mysql.php index 9e26fb7a2b..360e6a57e8 100644 --- a/core/Db/Adapter/Pdo/Mysql.php +++ b/core/Db/Adapter/Pdo/Mysql.php @@ -194,6 +194,17 @@ class Mysql extends Zend_Db_Adapter_Pdo_Mysql implements AdapterInterface } /** + * Return number of affected rows in last query + * + * @param mixed $queryResult Result from query() + * @return int + */ + public function rowCount($queryResult) + { + return $queryResult->rowCount(); + } + + /** * Retrieve client version in PHP style * * @return string |