diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-02-28 18:00:59 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-02-28 18:00:59 +0000 |
commit | ff386b90bbee1abcf9e6cf38a9571e65f5e6a8b8 (patch) | |
tree | 592832e68e3c2d24c8e7634f847c033896cfc03d /modules/search.module | |
parent | a203f728bd012a101448633f29e35d16e820575d (diff) | |
download | brdo-ff386b90bbee1abcf9e6cf38a9571e65f5e6a8b8.tar.gz brdo-ff386b90bbee1abcf9e6cf38a9571e65f5e6a8b8.tar.bz2 |
#17747: PGSQL improvements
Diffstat (limited to 'modules/search.module')
-rw-r--r-- | modules/search.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/search.module b/modules/search.module index 5e519a4e0..1327e8bb7 100644 --- a/modules/search.module +++ b/modules/search.module @@ -511,7 +511,7 @@ function do_search($keys, $type, $join = '', $where = '1') { $count_query = "SELECT $count"; // Do pager query - $query = "SELECT i.type, i.sid, i.word, SUM(i.score/t.count) AS score FROM {search_index} i $join INNER JOIN {search_total} t ON i.word = t.word WHERE $where GROUP BY i.type, i.sid ORDER BY score DESC"; + $query = "SELECT i.type, i.sid, SUM(i.score/t.count) AS score FROM {search_index} i $join INNER JOIN {search_total} t ON i.word = t.word WHERE $where GROUP BY i.type, i.sid ORDER BY score DESC"; $result = pager_query($query, 15, 0, $count_query, $arguments); $results = array(); |