- Patch #293504 by Damien Tournoud: fixed search on PostgreSQL - argument of AND must be type boolean, not type integer.

merge-requests/26/head
Dries Buytaert 2008-08-13 06:59:19 +00:00
parent 3a7bbafa92
commit 774d060142
1 changed files with 1 additions and 1 deletions

View File

@ -912,7 +912,7 @@ function _search_parse_query(&$word, &$scores, $not = FALSE) {
* *
* @ingroup search * @ingroup search
*/ */
function do_search($keywords, $type, $join1 = '', $where1 = '1', $arguments1 = array(), $columns2 = 'i.relevance AS score', $join2 = '', $arguments2 = array(), $sort_parameters = 'ORDER BY score DESC') { function do_search($keywords, $type, $join1 = '', $where1 = '1 = 1', $arguments1 = array(), $columns2 = 'i.relevance AS score', $join2 = '', $arguments2 = array(), $sort_parameters = 'ORDER BY score DESC') {
$query = search_parse_query($keywords); $query = search_parse_query($keywords);
if ($query[2] == '') { if ($query[2] == '') {