Fix IDatabase::affectedRows() documentation
authorGergő Tisza <tgr.huwiki@gmail.com>
Fri, 16 Aug 2019 12:06:10 +0000 (14:06 +0200)
committerGergő Tisza <tgr.huwiki@gmail.com>
Fri, 16 Aug 2019 12:06:10 +0000 (14:06 +0200)
Bug: T229456
Change-Id: I992e81e5dbcd9db74644b2990044cf685567db5a

includes/libs/rdbms/database/IDatabase.php

index 6b02867..11a5595 100644 (file)
@@ -452,8 +452,10 @@ interface IDatabase {
        public function lastError();
 
        /**
-        * Get the number of rows affected by the last write query
-        * @see https://www.php.net/mysql_affected_rows
+        * Get the number of rows affected by the last write query.
+        * Similar to https://www.php.net/mysql_affected_rows but includes rows matched
+        * but not changed (ie. an UPDATE which sets all fields to the same value they already have).
+        * To get the old mysql_affected_rows behavior, include non-equality of the fields in WHERE.
         *
         * @return int
         */