Index: trunk/extensions/CodeReview/backend/CodeRevision.php |
— | — | @@ -685,7 +685,7 @@ |
686 | 686 | 'cp_repo_id' => $this->mRepoId, |
687 | 687 | 'cp_path LIKE ' . $dbr->addQuotes( $dbr->escapeLike( $path ) . '%' ), |
688 | 688 | // performance |
689 | | - 'cp_rev_id > ' . $this->mRepo->getLastStoredRev() - 20000, |
| 689 | + 'cp_rev_id > ' . ( $this->mRepo->getLastStoredRev() - 20000 ), |
690 | 690 | // join conds |
691 | 691 | 'cr_repo_id = cp_repo_id', |
692 | 692 | 'cr_id = cp_rev_id' |
Index: trunk/extensions/CodeReview/ui/CodeRevisionListView.php |
— | — | @@ -173,7 +173,7 @@ |
174 | 174 | 'cp_repo_id' => $this->mRepo->getId(), |
175 | 175 | 'cp_path LIKE ' . $this->mDb->addQuotes( $this->mDb->escapeLike( $this->getSVNPath() ) . '%' ), |
176 | 176 | // performance |
177 | | - 'cp_rev_id > ' . $this->mRepo->getLastStoredRev() - 20000 |
| 177 | + 'cp_rev_id > ' . ( $this->mRepo->getLastStoredRev() - 20000 ) |
178 | 178 | ), |
179 | 179 | 'options' => array( 'GROUP BY' => 'cp_rev_id', 'USE INDEX' => array( 'code_path' => 'cp_repo_id' ) ), |
180 | 180 | 'join_conds' => array( |