mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 17:05:45 +02:00
BUGFIX: searchEngine throws exception without _new_ keyword
This commit is contained in:
parent
e5dfd2b080
commit
b59ce20a97
@ -1335,7 +1335,7 @@ class PostgreSQLDatabase extends SS_Database {
|
||||
//We can get a list of all the tsvector columns though this query:
|
||||
//We know what tables to search in based on the $classesToSearch variable:
|
||||
$result=DB::query("SELECT table_name, column_name, data_type FROM information_schema.columns WHERE data_type='tsvector' AND table_name in ('" . implode("', '", $classesToSearch) . "');");
|
||||
if (!$result->numRecords()) throw Exception('there are no full text columns to search');
|
||||
if (!$result->numRecords()) throw new Exception('there are no full text columns to search');
|
||||
|
||||
$tables=Array();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user