Skip to content

Commit

Permalink
FIX Usage of a bug-feature around aliases
Browse files Browse the repository at this point in the history
Related #95
  • Loading branch information
dnsl48 committed May 6, 2019
1 parent 04000ad commit 0ffaf90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/PostgreSQLDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ public function searchEngine($classesToSearch, $keywords, $start, $pageLength, $

// Could parameterise this, but convention is only to to so for where conditions
$query->addFrom(array(
'tsearch' => ", to_tsquery('" . self::search_language() . "', $keywords) AS q"
'q' => ", to_tsquery('" . self::search_language() . "', $keywords)"
));
$query->setSelect(array());

Expand Down

0 comments on commit 0ffaf90

Please sign in to comment.