r24460 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24459‎ | r24460 | r24461 >
Date:14:10, 30 July 2007
Author:greg
Status:old
Tags:
Comment:
Add function to check if function-based indexes are supported by the backend DB.
Modified paths:
  • /trunk/phase3/includes/Database.php (modified) (history)
  • /trunk/phase3/includes/DatabasePostgres.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/DatabasePostgres.php
@@ -105,6 +105,9 @@
106106 function searchableIPs() {
107107 return true;
108108 }
 109+ function functionalIndexes() {
 110+ return true;
 111+ }
109112
110113 static function newFromParams( $server, $user, $password, $dbName, $failFunction = false, $flags = 0)
111114 {
Index: trunk/phase3/includes/Database.php
@@ -448,6 +448,13 @@
449449 return false;
450450 }
451451
 452+ /**
 453+ * Returns true if this database can use functional indexes
 454+ */
 455+ function functionalIndexes() {
 456+ return false;
 457+ }
 458+
452459 /**#@+
453460 * Get function
454461 */

Follow-up revisions

RevisionCommit summaryAuthorDate
r24502Merged revisions 24415-24479 via svnmerge from...david22:31, 31 July 2007

Status & tagging log