Code Duplication    Length = 5-10 lines in 2 locations

includes/db/DatabaseOracle.php 2 locations

@@ 677-681 (lines=5) @@
674
		}
675
676
		$sequenceData = $this->getSequenceData( $destTable );
677
		if ( $sequenceData !== false &&
678
			!isset( $varMap[$sequenceData['column']] )
679
		) {
680
			$varMap[$sequenceData['column']] = 'GET_SEQUENCE_VALUE(\'' . $sequenceData['sequence'] . '\')';
681
		}
682
683
		// count-alias subselect fields to avoid abigious definition errors
684
		$i = 0;
@@ 722-731 (lines=10) @@
719
		}
720
721
		$sequenceData = $this->getSequenceData( $table );
722
		if ( $sequenceData !== false ) {
723
			// add sequence column to each list of columns, when not set
724
			foreach ( $rows as &$row ) {
725
				if ( !isset( $row[$sequenceData['column']] ) ) {
726
					$row[$sequenceData['column']] =
727
						$this->addIdentifierQuotes( 'GET_SEQUENCE_VALUE(\'' .
728
							$sequenceData['sequence'] . '\')' );
729
				}
730
			}
731
		}
732
733
		return parent::upsert( $table, $rows, $uniqueIndexes, $set, $fname );
734
	}