Code Duplication    Length = 12-12 lines in 2 locations

includes/db/DatabaseOracle.php 2 locations

@@ 633-644 (lines=12) @@
630
631
		MediaWiki\suppressWarnings();
632
633
		if ( oci_execute( $stmt, $this->execFlags() ) === false ) {
634
			$e = oci_error( $stmt );
635
			if ( !$this->ignoreDupValOnIndex || $e['code'] != '1' ) {
636
				$this->reportQueryError( $e['message'], $e['code'], $sql, __METHOD__ );
637
638
				return false;
639
			} else {
640
				$this->mAffectedRows = oci_num_rows( $stmt );
641
			}
642
		} else {
643
			$this->mAffectedRows = oci_num_rows( $stmt );
644
		}
645
646
		MediaWiki\restoreWarnings();
647
@@ 1434-1445 (lines=12) @@
1431
1432
		MediaWiki\suppressWarnings();
1433
1434
		if ( oci_execute( $stmt, $this->execFlags() ) === false ) {
1435
			$e = oci_error( $stmt );
1436
			if ( !$this->ignoreDupValOnIndex || $e['code'] != '1' ) {
1437
				$this->reportQueryError( $e['message'], $e['code'], $sql, __METHOD__ );
1438
1439
				return false;
1440
			} else {
1441
				$this->mAffectedRows = oci_num_rows( $stmt );
1442
			}
1443
		} else {
1444
			$this->mAffectedRows = oci_num_rows( $stmt );
1445
		}
1446
1447
		MediaWiki\restoreWarnings();
1448