Aaron Schulz has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/338122 )

Change subject: Add update()/insert() comments to IDatabase
......................................................................

Add update()/insert() comments to IDatabase

Change-Id: I926554e24c06eb002de92f950725c6a3912ee06f
---
M includes/libs/rdbms/database/IDatabase.php
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/22/338122/1

diff --git a/includes/libs/rdbms/database/IDatabase.php 
b/includes/libs/rdbms/database/IDatabase.php
index 591c797..ec4ce8b 100644
--- a/includes/libs/rdbms/database/IDatabase.php
+++ b/includes/libs/rdbms/database/IDatabase.php
@@ -908,6 +908,8 @@
         * @param array $values An array of values to SET. For each array 
element,
         *   the key gives the field name, and the value gives the data to set
         *   that field to. The data will be quoted by IDatabase::addQuotes().
+        *   Values with integer keys form unquoted SET statements, which can 
be used for
+        *   things like "field = field + 1" or similar computed values.
         * @param array $conds An array of conditions (WHERE). See
         *   IDatabase::select() for the details of the format of condition
         *   arrays. Use '*' to update all rows.
@@ -1151,6 +1153,8 @@
         * @param array $set An array of values to SET. For each array element, 
the
         *   key gives the field name, and the value gives the data to set that
         *   field to. The data will be quoted by IDatabase::addQuotes().
+        *   Values with integer keys form unquoted SET statements, which can 
be used for
+        *   things like "field = field + 1" or similar computed values.
         * @param string $fname Calling function name (use __METHOD__) for 
logs/profiling
         * @throws Exception
         * @return bool

-- 
To view, visit https://gerrit.wikimedia.org/r/338122
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I926554e24c06eb002de92f950725c6a3912ee06f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to