FIX Usage of a bug-feature around aliases

Related https://github.com/silverstripe/silverstripe-postgresql/issues/95
This commit is contained in:
Serge Latyntcev 2019-05-06 16:06:58 +12:00
parent 04000ad878
commit 0ffaf90512
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@ class PostgreSQLDatabase extends Database
// 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());