r47294 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47293‎ | r47294 | r47295 >
Date:16:18, 15 February 2009
Author:mkroetzsch
Status:deferred
Tags:
Comment:
fixed column order
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php
@@ -937,7 +937,7 @@
938938 $options .= ' OFFSET ' . $requestoptions->offset;
939939 }
940940 // NOTE: the query needs to do the fitlering of internal properties, else LIMIT is wrong
941 - $res = $db->query('(SELECT smw_id, smw_title, smw_sortkey, COUNT(*) as count FROM ' .
 941+ $res = $db->query('(SELECT smw_id, smw_title, COUNT(*) as count, smw_sortkey FROM ' .
942942 $db->tableName('smw_rels2') . ' INNER JOIN ' . $db->tableName('smw_ids') . ' ON p_id=smw_id WHERE smw_iw=' .
943943 $db->addQuotes('') . ' OR smw_iw=' . $db->addQuotes(SMW_SQL2_SMWPREDEFIW) . ' GROUP BY smw_id,smw_title,smw_sortkey) UNION ' .
944944 '(SELECT smw_id, smw_title, COUNT(*) as count, smw_sortkey FROM ' .

Status & tagging log