r28545 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r28544‎ | r28545 | r28546 >
Date:17:44, 16 December 2007
Author:greg
Status:old
Tags:
Comment:
Add space before GROUP BY call.
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore.php
@@ -912,13 +912,13 @@
913913 $options .= ' OFFSET ' . $requestoptions->offset;
914914 }
915915 $res = $db->query('(SELECT relation_title as title, COUNT(*) as count FROM ' .
916 - $db->tableName('smw_relations') . 'GROUP BY relation_title) UNION ' .
 916+ $db->tableName('smw_relations') . ' GROUP BY relation_title) UNION ' .
917917 '(SELECT attribute_title as title, COUNT(*) as count FROM ' .
918 - $db->tableName('smw_attributes') . 'GROUP BY attribute_title) UNION ' .
 918+ $db->tableName('smw_attributes') . ' GROUP BY attribute_title) UNION ' .
919919 '(SELECT attribute_title as title, COUNT(*) as count FROM ' .
920 - $db->tableName('smw_longstrings') . 'GROUP BY attribute_title) UNION ' .
 920+ $db->tableName('smw_longstrings') . ' GROUP BY attribute_title) UNION ' .
921921 '(SELECT attribute_title as title, COUNT(*) as count FROM ' .
922 - $db->tableName('smw_nary') . 'GROUP BY attribute_title)' . $options,
 922+ $db->tableName('smw_nary') . ' GROUP BY attribute_title)' . $options,
923923 'SMW::getPropertySubjects');
924924 $result = array();
925925 while($row = $db->fetchObject($res)) {

Status & tagging log