Code Duplication    Length = 6-6 lines in 4 locations

includes/db/DatabaseOracle.php 4 locations

@@ 399-404 (lines=6) @@
396
		MediaWiki\suppressWarnings();
397
398
		$this->mLastResult = $stmt = oci_parse( $this->mConn, $sql );
399
		if ( $stmt === false ) {
400
			$e = oci_error( $this->mConn );
401
			$this->reportQueryError( $e['message'], $e['code'], $sql, __METHOD__ );
402
403
			return false;
404
		}
405
406
		if ( !oci_execute( $stmt, $this->execFlags() ) ) {
407
			$e = oci_error( $stmt );
@@ 654-659 (lines=6) @@
651
		$sql .= ')';
652
653
		$this->mLastResult = $stmt = oci_parse( $this->mConn, $sql );
654
		if ( $stmt === false ) {
655
			$e = oci_error( $this->mConn );
656
			$this->reportQueryError( $e['message'], $e['code'], $sql, __METHOD__ );
657
658
			return false;
659
		}
660
		foreach ( $row as $col => &$val ) {
661
			$col_info = $this->fieldInfoMulti( $table, $col );
662
			$col_type = $col_info != false ? $col_info->type() : 'CONSTANT';
@@ 1097-1102 (lines=6) @@
1094
			'SELECT * FROM wiki_field_info_full WHERE table_name ' .
1095
				$tableWhere . ' and column_name = \'' . $field . '\''
1096
		);
1097
		if ( oci_execute( $fieldInfoStmt, $this->execFlags() ) === false ) {
1098
			$e = oci_error( $fieldInfoStmt );
1099
			$this->reportQueryError( $e['message'], $e['code'], 'fieldInfo QUERY', __METHOD__ );
1100
1101
			return false;
1102
		}
1103
		$res = new ORAResult( $this, $fieldInfoStmt );
1104
		if ( $res->numRows() == 0 ) {
1105
			if ( is_array( $table ) ) {
@@ 1449-1454 (lines=6) @@
1446
		}
1447
1448
		$this->mLastResult = $stmt = oci_parse( $this->mConn, $sql );
1449
		if ( $stmt === false ) {
1450
			$e = oci_error( $this->mConn );
1451
			$this->reportQueryError( $e['message'], $e['code'], $sql, __METHOD__ );
1452
1453
			return false;
1454
		}
1455
		foreach ( $values as $col => &$val ) {
1456
			$col_info = $this->fieldInfoMulti( $table, $col );
1457
			$col_type = $col_info != false ? $col_info->type() : 'CONSTANT';