aboutsummaryrefslogtreecommitdiffstats
path: root/includes/SearchMySQL4.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@users.mediawiki.org>2004-12-19 08:00:50 +0000
committerBrion Vibber <brion@users.mediawiki.org>2004-12-19 08:00:50 +0000
commit64ac6b8e775dd8582ea9cc5f24235488f076c5b3 (patch)
tree95335217590f2a3fb39785ce32fe56ba5a11b018 /includes/SearchMySQL4.php
parentc05eeb66755f74272b4a5f82acc6caaeafc0fb54 (diff)
downloadmediawikicore-64ac6b8e775dd8582ea9cc5f24235488f076c5b3.tar.gz
mediawikicore-64ac6b8e775dd8582ea9cc5f24235488f076c5b3.zip
Merge SCHEMA_WORK into HEAD. Lots of changes, some things are probably broken:
* Page moves/overwrites are a little iffy * Compression might not be working right * Profit!
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/6710
Diffstat (limited to 'includes/SearchMySQL4.php')
-rw-r--r--includes/SearchMySQL4.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/includes/SearchMySQL4.php b/includes/SearchMySQL4.php
index a1fa5b38fb4b..a78e41584b43 100644
--- a/includes/SearchMySQL4.php
+++ b/includes/SearchMySQL4.php
@@ -72,11 +72,12 @@ class SearchMySQL4 extends SearchEngine {
function queryMain( $filteredTerm, $fulltext ) {
$match = $this->parseQuery( $filteredTerm, $fulltext );
- $cur = $this->db->tableName( 'cur' );
+ $page = $this->db->tableName( 'page' );
+ $text = $this->db->tableName( 'text' );
$searchindex = $this->db->tableName( 'searchindex' );
- return 'SELECT cur_id, cur_namespace, cur_title, cur_text ' .
- "FROM $cur,$searchindex " .
- 'WHERE cur_id=si_page AND ' . $match;
+ return 'SELECT page_id, page_namespace, page_title, old_flags, old_text ' .
+ "FROM $page,$text,$searchindex " .
+ 'WHERE page_id=si_page AND page_latest=old_id AND ' . $match;
}
function update( $id, $title, $text ) {