Fix MySQL-centrism in comment
authorAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 8 Dec 2008 23:10:24 +0000 (23:10 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 8 Dec 2008 23:10:24 +0000 (23:10 +0000)
includes/Title.php

index 792f475..9e52e5a 100644 (file)
@@ -2979,7 +2979,8 @@ class Title {
         */
        public function pageCond() {
                if( $this->mArticleID > 0 ) {
-                       return array( 'page_id' => $this->mArticleID ); // PK avoids secondary lookups
+                       // PK avoids secondary lookups in InnoDB, shouldn't hurt other DBs
+                       return array( 'page_id' => $this->mArticleID );
                } else {
                        return array( 'page_namespace' => $this->mNamespace, 'page_title' => $this->mDbkeyform );
                }