Sha256: 2b830dfee1a5a751c950b0b8d84b0147635827383b443bf6ff4ff111a80a0e25
Contents?: true
Size: 439 Bytes
Versions: 3
Compression:
Stored size: 439 Bytes
Contents
/* mysqlcompat-1.0b3 public domain GROUP_CONCAT() Note: For DISTINCT and ORDER BY a subquery is required */ CREATE FUNCTION _group_concat(text, text) RETURNS text AS $$ SELECT CASE WHEN $2 IS NULL THEN $1 WHEN $1 IS NULL THEN $2 ELSE $1 operator(pg_catalog.||) ' ' operator(pg_catalog.||) $2 END $$ IMMUTABLE LANGUAGE SQL; CREATE AGGREGATE group_concat ( BASETYPE = text, SFUNC = _group_concat, STYPE = text );
Version data entries
3 entries across 3 versions & 2 rubygems