http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88120
Revision: 88120
Author: jeroendedauw
Date: 2011-05-14 22:39:40 +0000 (Sat, 14 May 2011)
Log Message:
-----------
fix pg bug
Modified Paths:
--------------
trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLHelpers.php
Modified: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLHelpers.php
===================================================================
--- trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLHelpers.php
2011-05-14 22:36:19 UTC (rev 88119)
+++ trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLHelpers.php
2011-05-14 22:39:40 UTC (rev 88120)
@@ -310,11 +310,11 @@
* @param array $columns The field names to put indexes on
* @param DatabaseBase or Database $db
*/
- public static function setupIndex( $tableName, array $columns, $db ) {
+ public static function setupIndex( $rawTableName, array $columns, $db )
{
// TODO: $verbose is not a good global name!
global $wgDBtype, $verbose;
- $tableName = $db->tableName( $tableName );
+ $tableName = $db->tableName( $rawTableName );
if ( $wgDBtype == 'postgres' ) { // postgresql
$sql = "SELECT i.relname AS indexname,"
@@ -356,7 +356,7 @@
$column = $index;
}
- $db->query( "CREATE $type
{$tableName}_index{$key} ON $tableName USING btree(" . $column . ")",
__METHOD__ );
+ $db->query( "CREATE $type
{$rawTableName}_index{$key} ON $tableName USING btree(" . $column . ")",
__METHOD__ );
}
}
} else { // MySQL
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs