summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-12-23 09:31:56 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-12-23 09:31:56 +0000
commit8cbf5a50c8cecf7e273bb034ecc6b9a77150d041 (patch)
tree906a436a7e9e3aca82ab5d8a1ca2c99fef6e40b5 /includes
parente3d8439e42b0aebe0818a70e09a8f392d91ca839 (diff)
downloadbrdo-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.inc2
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