includes/db/Database.php 1 location
|
@@ 1508-1510 (lines=3) @@
|
| 1505 |
|
$opts = $this->makeUpdateOptions( $options ); |
| 1506 |
|
$sql = "UPDATE $opts $table SET " . $this->makeList( $values, LIST_SET ); |
| 1507 |
|
|
| 1508 |
|
if ( $conds !== [] && $conds !== '*' ) { |
| 1509 |
|
$sql .= " WHERE " . $this->makeList( $conds, LIST_AND ); |
| 1510 |
|
} |
| 1511 |
|
|
| 1512 |
|
return $this->query( $sql, $fname ); |
| 1513 |
|
} |
includes/db/DatabaseMssql.php 1 location
|
@@ 789-791 (lines=3) @@
|
| 786 |
|
$opts = $this->makeUpdateOptions( $options ); |
| 787 |
|
$sql = "UPDATE $opts $table SET " . $this->makeList( $values, LIST_SET, $binaryColumns ); |
| 788 |
|
|
| 789 |
|
if ( $conds !== [] && $conds !== '*' ) { |
| 790 |
|
$sql .= " WHERE " . $this->makeList( $conds, LIST_AND, $binaryColumns ); |
| 791 |
|
} |
| 792 |
|
|
| 793 |
|
$this->mScrollableCursor = false; |
| 794 |
|
try { |