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';
@@ 1098-1103 (lines=6) @@
1095
			'SELECT * FROM wiki_field_info_full WHERE table_name ' .
1096
				$tableWhere . ' and column_name = \'' . $field . '\''
1097
		);
1098
		if ( oci_execute( $fieldInfoStmt, $this->execFlags() ) === false ) {
1099
			$e = oci_error( $fieldInfoStmt );
1100
			$this->reportQueryError( $e['message'], $e['code'], 'fieldInfo QUERY', __METHOD__ );
1101
1102
			return false;
1103
		}
1104
		$res = new ORAResult( $this, $fieldInfoStmt );
1105
		if ( $res->numRows() == 0 ) {
1106
			if ( is_array( $table ) ) {
@@ 1456-1461 (lines=6) @@
1453
		}
1454
1455
		$this->mLastResult = $stmt = oci_parse( $this->mConn, $sql );
1456
		if ( $stmt === false ) {
1457
			$e = oci_error( $this->mConn );
1458
			$this->reportQueryError( $e['message'], $e['code'], $sql, __METHOD__ );
1459
1460
			return false;
1461
		}
1462
		foreach ( $values as $col => &$val ) {
1463
			$col_info = $this->fieldInfoMulti( $table, $col );
1464
			$col_type = $col_info != false ? $col_info->type() : 'CONSTANT';