From: Greg Sabino Mullane Date: Mon, 30 Jul 2007 14:10:42 +0000 (+0000) Subject: Add function to check if function-based indexes are supported by the backend DB. X-Git-Tag: 1.31.0-rc.0~51924 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=4fffb261dd9bb14b9015ae11e169ab57201a3503;p=lhc%2Fweb%2Fwiklou.git Add function to check if function-based indexes are supported by the backend DB. --- 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) {