38 public function update( $table, array $newValues, array $oldValues, $fname ) {
39 $this->dbw->newUpdateQueryBuilder()
43 ->caller( $fname )->execute();
45 $updated = (bool)$this->dbw->affectedRows();
46 if ( $this->file && $updated ) {
47 $table = $this->dbw->tableName( $table );
51 ' SET ' . $this->dbw->makeList( $oldValues, IDatabase::LIST_SET ) .
52 ' WHERE ' . $this->dbw->makeList( $newValues, IDatabase::LIST_AND ) .
";\n"