Needs work
Project:
Drupal core
Version:
main
Component:
database system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2013 at 18:22 UTC
Updated:
16 Apr 2026 at 17:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
chx commentedLarry, please either
Comment #2
Crell commentedI'm open to adding this method if we can do it in a cross-DB-friendly way. (Supported in all core DBs, and reasonable confidence that the contrib DBs could do so.) I am against a func_get_args() approach, however. It looks like we'd be OK here with groupByAggregate($separator, array $fields), I believe, which would be fine.
I believe Daniel indicated this would help simplify some code in Views, so let's see if we can pull it off. chx, over to you with that caveat.
Comment #3
dawehnerLet's start with an implementation for mysql and a proper test.
Comment #4
chx commentedSQLite has group_concat(). http://www.sqlite.org/lang_aggfunc.html
Comment #5
dawehnerWell right, though it does NOT support multiple columns, nor distinct.
Comment #5.0
dawehnerfixed php code
Comment #8
chx commentedComment #9
Crell commentedComment #25
smustgrave commentedThank you for sharing your idea for improving Drupal.
We are working to decide if this proposal meets the Criteria for evaluating proposed changes. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or there is no community support. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #26
smustgrave commentedWanted to bump 1 more time before closing.
Comment #28
smustgrave commentedSeems like this was desired from before so will put back, not comfortable closing