Index: trunk/phase3/includes/LogEventsList.php |
— | — | @@ -726,6 +726,17 @@ |
727 | 727 | public function getTagFilter() { |
728 | 728 | return $this->mTagFilter; |
729 | 729 | } |
| 730 | + |
| 731 | + public function doQuery() { |
| 732 | + // Work around MySQL optimizer bug |
| 733 | + if ( in_array( get_class( $this->mDb ), array( 'Database', 'DatabaseMysql' ) ) ) { |
| 734 | + $this->mDb->query( 'SET SQL_BIG_SELECTS=1' ); |
| 735 | + parent::doQuery(); |
| 736 | + $this->mDb->query( 'SET SQL_BIG_SELECTS=0' ); |
| 737 | + } else { |
| 738 | + parent::doQuery(); |
| 739 | + } |
| 740 | + } |
730 | 741 | } |
731 | 742 | |
732 | 743 | /** |