From 0f3d0f2693fffe2f5904564b789100845117566f Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Tue, 30 Dec 2008 03:53:35 +0000 Subject: [PATCH] #229051 follow-up by anigma32: Committing rest of fix for statistics under pgsql. --- modules/statistics/statistics.admin.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/statistics/statistics.admin.inc b/modules/statistics/statistics.admin.inc index 38733c1f5a9..7d359d616e9 100644 --- a/modules/statistics/statistics.admin.inc +++ b/modules/statistics/statistics.admin.inc @@ -83,7 +83,7 @@ function statistics_top_visitors() { ); $sql = "SELECT COUNT(a.uid) AS hits, a.uid, u.name, a.hostname, SUM(a.timer) AS total, bl.iid FROM {accesslog} a LEFT JOIN {blocked_ips} bl ON a.hostname = bl.ip LEFT JOIN {users} u ON a.uid = u.uid GROUP BY a.hostname, a.uid, u.name, bl.iid" . tablesort_sql($header); - $sql_cnt = "SELECT COUNT(DISTINCT(CONCAT(uid, hostname))) FROM {accesslog}"; + $sql_cnt = "SELECT COUNT(DISTINCT(CONCAT(CAST(uid AS char), hostname))) FROM {accesslog}"; $result = pager_query($sql, 30, 0, $sql_cnt); $rows = array();