summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-12-02 21:24:34 +0000
committerDries Buytaert <dries@buytaert.net>2008-12-02 21:24:34 +0000
commit20295998e7a14ff708a33572e860e0587aaa82c3 (patch)
treee6ea9c7237bdf668f2580d9039dbe03f0b04bc73 /modules/comment/comment.module
parent99afbc53a736ba30b294ed62611767345fe8c3dd (diff)
downloadbrdo-20295998e7a14ff708a33572e860e0587aaa82c3.tar.gz
brdo-20295998e7a14ff708a33572e860e0587aaa82c3.tar.bz2
- Patch #296624 by Damien Tournoud: made search work on PostgreSQL.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index d3f327bbc..a72100743 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -2117,7 +2117,7 @@ function comment_ranking() {
'title' => t('Number of comments'),
'join' => 'LEFT JOIN {node_comment_statistics} node_comment_statistics ON node_comment_statistics.nid = i.sid',
// Inverse law that maps the highest reply count on the site to 1 and 0 to 0.
- 'score' => '2.0 - 2.0 / (1.0 + node_comment_statistics.comment_count * %f)',
+ 'score' => '2.0 - 2.0 / (1.0 + node_comment_statistics.comment_count * CAST(%f AS DECIMAL))',
'arguments' => array(variable_get('node_cron_comments_scale', 0)),
),
);