MDL-15345: prevent problem while running tag_compute_correlations under pgsql. (merge from 1.9)

This commit is contained in:
scyrma 2008-06-23 04:31:41 +00:00
parent 132a0f6216
commit eafa83ef9d

View File

@ -786,7 +786,7 @@ function tag_compute_correlations($min_correlation=2) {
WHERE ta.tagid = ? AND tb.tagid <> ?
GROUP BY tb.tagid
HAVING nr > ?
ORDER BY nr DESC";
ORDER BY COUNT(*) DESC";
$params = array($tag->id, $tag->id, $min_correlation);
$correlated = array();