From 4fffb261dd9bb14b9015ae11e169ab57201a3503 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Mon, 30 Jul 2007 14:10:42 +0000 Subject: [PATCH] Add function to check if function-based indexes are supported by the backend DB. --- includes/Database.php | 7 +++++++ includes/DatabasePostgres.php | 3 +++ 2 files changed, 10 insertions(+) diff --git a/includes/Database.php b/includes/Database.php index bbf56e8706..ebb4b2541a 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -448,6 +448,13 @@ class Database { return false; } + /** + * Returns true if this database can use functional indexes + */ + function functionalIndexes() { + return false; + } + /**#@+ * Get function */ diff --git a/includes/DatabasePostgres.php b/includes/DatabasePostgres.php index 947d5264f1..7f738a4046 100644 --- a/includes/DatabasePostgres.php +++ b/includes/DatabasePostgres.php @@ -105,6 +105,9 @@ class DatabasePostgres extends Database { function searchableIPs() { return true; } + function functionalIndexes() { + return true; + } static function newFromParams( $server, $user, $password, $dbName, $failFunction = false, $flags = 0) { -- 2.20.1