Code Duplication    Length = 7-7 lines in 4 locations

includes/db/DatabaseOracle.php 1 location

@@ 1538-1544 (lines=7) @@
1535
		return $this->mServer;
1536
	}
1537
1538
	public function buildGroupConcatField(
1539
		$delim, $table, $field, $conds = '', $join_conds = []
1540
	) {
1541
		$fld = "LISTAGG($field," . $this->addQuotes( $delim ) . ") WITHIN GROUP (ORDER BY $field)";
1542
1543
		return '(' . $this->selectSQLText( $table, $fld, $conds, null, [], $join_conds ) . ')';
1544
	}
1545
1546
	public function getSearchEngine() {
1547
		return 'SearchOracle';

includes/db/DatabaseSqlite.php 1 location

@@ 935-941 (lines=7) @@
932
		return '(' . implode( ') || (', $stringList ) . ')';
933
	}
934
935
	public function buildGroupConcatField(
936
		$delim, $table, $field, $conds = '', $join_conds = []
937
	) {
938
		$fld = "group_concat($field," . $this->addQuotes( $delim ) . ')';
939
940
		return '(' . $this->selectSQLText( $table, $fld, $conds, null, [], $join_conds ) . ')';
941
	}
942
943
	/**
944
	 * @throws MWException

includes/db/DatabasePostgres.php 1 location

@@ 1525-1531 (lines=7) @@
1522
		return implode( ' || ', $stringList );
1523
	}
1524
1525
	public function buildGroupConcatField(
1526
		$delimiter, $table, $field, $conds = '', $options = [], $join_conds = []
1527
	) {
1528
		$fld = "array_to_string(array_agg($field)," . $this->addQuotes( $delimiter ) . ')';
1529
1530
		return '(' . $this->selectSQLText( $table, $fld, $conds, null, [], $join_conds ) . ')';
1531
	}
1532
1533
	public function getSearchEngine() {
1534
		return 'SearchPostgres';

includes/db/Database.php 1 location

@@ 1637-1643 (lines=7) @@
1634
		return 'CONCAT(' . implode( ',', $stringList ) . ')';
1635
	}
1636
1637
	public function buildGroupConcatField(
1638
		$delim, $table, $field, $conds = '', $join_conds = []
1639
	) {
1640
		$fld = "GROUP_CONCAT($field SEPARATOR " . $this->addQuotes( $delim ) . ')';
1641
1642
		return '(' . $this->selectSQLText( $table, $fld, $conds, null, [], $join_conds ) . ')';
1643
	}
1644
1645
	public function selectDB( $db ) {
1646
		# Stub. Shouldn't cause serious problems if it's not overridden, but