From 0ffaf9051256b373e8c3f0d89dfbda4c21974246 Mon Sep 17 00:00:00 2001 From: Serge Latyntcev Date: Mon, 6 May 2019 16:06:58 +1200 Subject: [PATCH] FIX Usage of a bug-feature around aliases Related https://github.com/silverstripe/silverstripe-postgresql/issues/95 --- code/PostgreSQLDatabase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/PostgreSQLDatabase.php b/code/PostgreSQLDatabase.php index 2f08b38..bc7f248 100644 --- a/code/PostgreSQLDatabase.php +++ b/code/PostgreSQLDatabase.php @@ -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());