Index: trunk/phase3/includes/db/DatabaseOracle.php |
— | — | @@ -1197,11 +1197,7 @@ |
1198 | 1198 | function update( $table, $values, $conds, $fname = 'DatabaseOracle::update', $options = array() ) { |
1199 | 1199 | global $wgContLang; |
1200 | 1200 | |
1201 | | - if ( is_array( $table ) ) { |
1202 | | - $table = implode( ',', array_map( array( $this, 'tableName' ), $table ) ); |
1203 | | - } else { |
1204 | | - $table = $this->tableName( $table ); |
1205 | | - } |
| 1201 | + $table = $this->tableName( $table ); |
1206 | 1202 | $opts = $this->makeUpdateOptions( $options ); |
1207 | 1203 | $sql = "UPDATE $opts $table SET "; |
1208 | 1204 | |
Index: trunk/phase3/includes/db/DatabaseIbm_db2.php |
— | — | @@ -984,11 +984,7 @@ |
985 | 985 | public function update( $table, $values, $conds, $fname = 'DatabaseIbm_db2::update', |
986 | 986 | $options = array() ) |
987 | 987 | { |
988 | | - if ( is_array( $table ) ) { |
989 | | - $table = implode( ',', array_map( array( $this, 'tableName' ), $table ) ); |
990 | | - } else { |
991 | | - $table = $this->tableName( $table ); |
992 | | - } |
| 988 | + $table = $this->tableName( $table ); |
993 | 989 | $opts = $this->makeUpdateOptions( $options ); |
994 | 990 | $sql = "UPDATE $opts $table SET " |
995 | 991 | . $this->makeList( $values, LIST_SET_PREPARED ); |
Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -1697,32 +1697,28 @@ |
1698 | 1698 | /** |
1699 | 1699 | * UPDATE wrapper. Takes a condition array and a SET array. |
1700 | 1700 | * |
1701 | | - * @param $table String|array name of the table to UPDATE. This will be passed through |
| 1701 | + * @param $table String name of the table to UPDATE. This will be passed through |
1702 | 1702 | * DatabaseBase::tableName(). |
1703 | 1703 | * |
1704 | | - * @param $values Array An array of values to SET. For each array element, |
| 1704 | + * @param $values Array: An array of values to SET. For each array element, |
1705 | 1705 | * the key gives the field name, and the value gives the data |
1706 | 1706 | * to set that field to. The data will be quoted by |
1707 | 1707 | * DatabaseBase::addQuotes(). |
1708 | 1708 | * |
1709 | | - * @param $conds Array An array of conditions (WHERE). See |
| 1709 | + * @param $conds Array: An array of conditions (WHERE). See |
1710 | 1710 | * DatabaseBase::select() for the details of the format of |
1711 | 1711 | * condition arrays. Use '*' to update all rows. |
1712 | 1712 | * |
1713 | | - * @param $fname String The function name of the caller (from __METHOD__), |
| 1713 | + * @param $fname String: The function name of the caller (from __METHOD__), |
1714 | 1714 | * for logging and profiling. |
1715 | 1715 | * |
1716 | | - * @param $options Array An array of UPDATE options, can be: |
| 1716 | + * @param $options Array: An array of UPDATE options, can be: |
1717 | 1717 | * - IGNORE: Ignore unique key conflicts |
1718 | 1718 | * - LOW_PRIORITY: MySQL-specific, see MySQL manual. |
1719 | 1719 | * @return Boolean |
1720 | 1720 | */ |
1721 | 1721 | function update( $table, $values, $conds, $fname = 'DatabaseBase::update', $options = array() ) { |
1722 | | - if ( is_array( $table ) ) { |
1723 | | - $table = implode( ',', array_map( array( $this, 'tableName' ), $table ) ); |
1724 | | - } else { |
1725 | | - $table = $this->tableName( $table ); |
1726 | | - } |
| 1722 | + $table = $this->tableName( $table ); |
1727 | 1723 | $opts = $this->makeUpdateOptions( $options ); |
1728 | 1724 | $sql = "UPDATE $opts $table SET " . $this->makeList( $values, LIST_SET ); |
1729 | 1725 | |