diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-23 09:31:56 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-23 09:31:56 +0000 |
commit | 8cbf5a50c8cecf7e273bb034ecc6b9a77150d041 (patch) | |
tree | 906a436a7e9e3aca82ab5d8a1ca2c99fef6e40b5 /includes | |
parent | e3d8439e42b0aebe0818a70e09a8f392d91ca839 (diff) | |
download | brdo-8cbf5a50c8cecf7e273bb034ecc6b9a77150d041.tar.gz brdo-8cbf5a50c8cecf7e273bb034ecc6b9a77150d041.tar.bz2 |
#1003860 follow-up by dereine, dmitrig01, chx: Fix count queries with aliases.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/database/select.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/database/select.inc b/includes/database/select.inc index 16091061b..9046afbdf 100644 --- a/includes/database/select.inc +++ b/includes/database/select.inc @@ -1362,7 +1362,7 @@ class SelectQuery extends Query implements SelectQueryInterface { // Create our new query object that we will mutate into a count query. $count = clone($this); - $group_by = array_keys($count->getGroupBy()); + $group_by = drupal_map_assoc(array_values($count->getGroupBy())); if (!$count->distinct) { // When not executing a distinct query, we can zero-out existing fields |