Code Duplication    Length = 7-7 lines in 4 locations

includes/db/DatabaseOracle.php 1 location

@@ 1483-1489 (lines=7) @@
1480
		return $this->mServer;
1481
	}
1482
1483
	public function buildGroupConcatField(
1484
		$delim, $table, $field, $conds = '', $join_conds = []
1485
	) {
1486
		$fld = "LISTAGG($field," . $this->addQuotes( $delim ) . ") WITHIN GROUP (ORDER BY $field)";
1487
1488
		return '(' . $this->selectSQLText( $table, $fld, $conds, null, [], $join_conds ) . ')';
1489
	}
1490
1491
	/**
1492
	 * @param string $field Field or column to cast

includes/libs/rdbms/database/DatabasePostgres.php 1 location

@@ 1331-1337 (lines=7) @@
1328
		return implode( ' || ', $stringList );
1329
	}
1330
1331
	public function buildGroupConcatField(
1332
		$delimiter, $table, $field, $conds = '', $options = [], $join_conds = []
1333
	) {
1334
		$fld = "array_to_string(array_agg($field)," . $this->addQuotes( $delimiter ) . ')';
1335
1336
		return '(' . $this->selectSQLText( $table, $fld, $conds, null, [], $join_conds ) . ')';
1337
	}
1338
1339
	/**
1340
	 * @param string $field Field or column to cast

includes/libs/rdbms/database/Database.php 1 location

@@ 1647-1653 (lines=7) @@
1644
		return 'CONCAT(' . implode( ',', $stringList ) . ')';
1645
	}
1646
1647
	public function buildGroupConcatField(
1648
		$delim, $table, $field, $conds = '', $join_conds = []
1649
	) {
1650
		$fld = "GROUP_CONCAT($field SEPARATOR " . $this->addQuotes( $delim ) . ')';
1651
1652
		return '(' . $this->selectSQLText( $table, $fld, $conds, null, [], $join_conds ) . ')';
1653
	}
1654
1655
	public function buildStringCast( $field ) {
1656
		return $field;

includes/libs/rdbms/database/DatabaseSqlite.php 1 location

@@ 920-926 (lines=7) @@
917
		return '(' . implode( ') || (', $stringList ) . ')';
918
	}
919
920
	public function buildGroupConcatField(
921
		$delim, $table, $field, $conds = '', $join_conds = []
922
	) {
923
		$fld = "group_concat($field," . $this->addQuotes( $delim ) . ')';
924
925
		return '(' . $this->selectSQLText( $table, $fld, $conds, null, [], $join_conds ) . ')';
926
	}
927
928
	/**
929
	 * @param string $oldName