Add function to check if function-based indexes are supported by the backend DB.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Mon, 30 Jul 2007 14:10:42 +0000 (14:10 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Mon, 30 Jul 2007 14:10:42 +0000 (14:10 +0000)
includes/Database.php
includes/DatabasePostgres.php

index bbf56e8..ebb4b25 100644 (file)
@@ -448,6 +448,13 @@ class Database {
                return false;
        }
 
+       /**
+        * Returns true if this database can use functional indexes
+        */
+       function functionalIndexes() {
+               return false;
+       }
+
        /**#@+
         * Get function
         */
index 947d526..7f738a4 100644 (file)
@@ -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)
        {