]> git.mxchange.org Git - friendica.git/commitdiff
Improve documentation of $old_fields possible values in DBA::update and Database...
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 5 Sep 2021 18:37:42 +0000 (14:37 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 5 Sep 2021 18:54:50 +0000 (14:54 -0400)
src/Database/DBA.php
src/Database/Database.php

index 097f1b756a19367574c35352029e772d94e654ce..e44260914eeb20c11c959fa0b000d71277180066 100644 (file)
@@ -421,7 +421,7 @@ class DBA
         * @param string|array  $table      Table name or array [schema => table]
         * @param array         $fields     contains the fields that are updated
         * @param array         $condition  condition array with the key values
-        * @param array|boolean $old_fields array with the old field values that are about to be replaced (true = update on duplicate)
+        * @param array|boolean $old_fields array with the old field values that are about to be replaced (true = update on duplicate, false = don't update identical fields)
         *
         * @return boolean was the update successfull?
         * @throws \Exception
index 5b488e11f1543e18b80d9071f14e908a2716afa6..361a3248d9ce40a00b518fed988072108ef4ae20 100644 (file)
@@ -1267,7 +1267,7 @@ class Database
         * @param string|array  $table      Table name or array [schema => table]
         * @param array         $fields     contains the fields that are updated
         * @param array         $condition  condition array with the key values
-        * @param array|boolean $old_fields array with the old field values that are about to be replaced (true = update on duplicate)
+        * @param array|boolean $old_fields array with the old field values that are about to be replaced (true = update on duplicate, false = don't update identical fields)
         *
         * @return boolean was the update successfull?
         * @throws \Exception