Index: trunk/phase3/includes/Title.php |
— | — | @@ -3749,7 +3749,7 @@ |
3750 | 3750 | public function countRevisionsBetween( $old, $new ) { |
3751 | 3751 | $dbr = wfGetDB( DB_SLAVE ); |
3752 | 3752 | return (int)$dbr->selectField( 'revision', 'count(*)', |
3753 | | - 'rev_page' => intval( $this->getArticleId() ) . |
| 3753 | + 'rev_page = ' . intval( $this->getArticleId() ) . |
3754 | 3754 | ' AND rev_id > ' . intval( $old ) . |
3755 | 3755 | ' AND rev_id < ' . intval( $new ), |
3756 | 3756 | __METHOD__ |
— | — | @@ -3770,7 +3770,7 @@ |
3771 | 3771 | $db = ( $flags & self::GAID_FOR_UPDATE ) ? wfGetDB( DB_MASTER ) : wfGetDB( DB_SLAVE ); |
3772 | 3772 | $res = $db->select( 'revision', 'DISTINCT rev_user_text', |
3773 | 3773 | array( |
3774 | | - 'rev_page' => $this->getArticleID(), |
| 3774 | + 'rev_page = ' . $this->getArticleID(), |
3775 | 3775 | 'rev_id > ' . (int)$fromRevId, |
3776 | 3776 | 'rev_id < ' . (int)$toRevId |
3777 | 3777 | ), __METHOD__, |