Merge "Move Field classes to Rdbms namespace"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 18 Feb 2017 03:25:35 +0000 (03:25 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 18 Feb 2017 03:25:35 +0000 (03:25 +0000)
1  2 
includes/libs/rdbms/database/IDatabase.php

@@@ -27,6 -27,7 +27,7 @@@ use Wikimedia\ScopedCallback
  use Wikimedia\Rdbms\Blob;
  use Wikimedia\Rdbms\LikeMatch;
  use Wikimedia\Rdbms\DBMasterPos;
+ use Wikimedia\Rdbms\Field;
  
  /**
   * Basic database interface for live and lazy-loaded relation database handles
@@@ -908,8 -909,6 +909,8 @@@ interface IDatabase 
         * @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.
         * @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