r66917 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66916‎ | r66917 | r66918 >
Date:14:06, 26 May 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Follow up to r66916
Modified paths:
  • /trunk/extensions/SemanticMaps/GeoCoords/SM_GeoCoordsValue.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMaps/GeoCoords/SM_GeoCoordsValue.php
@@ -63,11 +63,12 @@
6464
6565 // No spatial extensions support for postgres yet, so just store as 2 float fields.
6666 $signature = $smgUseSpatialExtensions ? array( 'point' => 'c' ) : array( 'lat' => 'f', 'lon' => 'f' );
 67+ $indexes = $smgUseSpatialExtensions ? array( array( 'point', 'SPATIAL INDEX' ) ) : array_keys( $signature );
6768
6869 $propertyTables['smw_coords'] = new SMWSQLStore2Table(
6970 'sm_coords',
7071 $signature,
71 - array_keys( $signature ) // These are the fields that should be indexed.
 72+ $indexes // These are the fields that should be indexed.
7273 );
7374
7475 return true;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r66916Added support for custom index types to the SQL storejeroendedauw14:05, 26 May 2010

Status & tagging log