Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Db/Adapter/Mysqli.php')
-rw-r--r--core/Db/Adapter/Mysqli.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/Db/Adapter/Mysqli.php b/core/Db/Adapter/Mysqli.php
index c06c8440d8..396ab60343 100644
--- a/core/Db/Adapter/Mysqli.php
+++ b/core/Db/Adapter/Mysqli.php
@@ -95,6 +95,17 @@ class Mysqli extends Zend_Db_Adapter_Mysqli implements AdapterInterface
}
/**
+ * Return number of affected rows in last query
+ *
+ * @param mixed $queryResult Result from query()
+ * @return int
+ */
+ public function rowCount($queryResult)
+ {
+ return mysqli_affected_rows($this->_connection);
+ }
+
+ /**
* Returns true if this adapter's required extensions are enabled
*
* @return bool