Merge pull request #97 from open-sausages/pulls/2/fix-aliasing

FIX Usage of a bug-feature around aliases
This commit is contained in:
Guy Marriott 2019-05-09 12:38:33 +12:00 committed by GitHub
commit 08c8293328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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