Code Duplication    Length = 3-3 lines in 2 locations

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 {

includes/db/Database.php 1 location

@@ 1511-1513 (lines=3) @@
1508
		$opts = $this->makeUpdateOptions( $options );
1509
		$sql = "UPDATE $opts $table SET " . $this->makeList( $values, LIST_SET );
1510
1511
		if ( $conds !== [] && $conds !== '*' ) {
1512
			$sql .= " WHERE " . $this->makeList( $conds, LIST_AND );
1513
		}
1514
1515
		return $this->query( $sql, $fname );
1516
	}