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

@@ 1676-1678 (lines=3) @@
1673
		$opts = $this->makeUpdateOptions( $options );
1674
		$sql = "UPDATE $opts $table SET " . $this->makeList( $values, LIST_SET );
1675
1676
		if ( $conds !== [] && $conds !== '*' ) {
1677
			$sql .= " WHERE " . $this->makeList( $conds, LIST_AND );
1678
		}
1679
1680
		return $this->query( $sql, $fname );
1681
	}