Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLHelpers.php |
— | — | @@ -310,11 +310,11 @@ |
311 | 311 | * @param array $columns The field names to put indexes on |
312 | 312 | * @param DatabaseBase or Database $db |
313 | 313 | */ |
314 | | - public static function setupIndex( $tableName, array $columns, $db ) { |
| 314 | + public static function setupIndex( $rawTableName, array $columns, $db ) { |
315 | 315 | // TODO: $verbose is not a good global name! |
316 | 316 | global $wgDBtype, $verbose; |
317 | 317 | |
318 | | - $tableName = $db->tableName( $tableName ); |
| 318 | + $tableName = $db->tableName( $rawTableName ); |
319 | 319 | |
320 | 320 | if ( $wgDBtype == 'postgres' ) { // postgresql |
321 | 321 | $sql = "SELECT i.relname AS indexname," |
— | — | @@ -356,7 +356,7 @@ |
357 | 357 | $column = $index; |
358 | 358 | } |
359 | 359 | |
360 | | - $db->query( "CREATE $type {$tableName}_index{$key} ON $tableName USING btree(" . $column . ")", __METHOD__ ); |
| 360 | + $db->query( "CREATE $type {$rawTableName}_index{$key} ON $tableName USING btree(" . $column . ")", __METHOD__ ); |
361 | 361 | } |
362 | 362 | } |
363 | 363 | } else { // MySQL |