diff --git a/code/MSSQLDatabase.php b/code/MSSQLDatabase.php index 644520c..0a33316 100644 --- a/code/MSSQLDatabase.php +++ b/code/MSSQLDatabase.php @@ -835,10 +835,7 @@ class MSSQLDatabase extends SS_Database { if(!is_array($indexSpec)) { $indexSpec=trim($indexSpec, '()'); - $bits=explode(',', $indexSpec); - $indexes="\"" . implode("\",\"", $bits) . "\""; - - return "$drop CREATE INDEX $index ON \"" . $tableName . "\" (" . $indexes . ");"; + return "$drop CREATE INDEX $index ON \"" . $tableName . "\" (" . $indexSpec . ");"; } else { // create a type-specific index if($indexSpec['type'] == 'fulltext') {