BUG: Fixed index generation to meet new SS3 expectations.

In SS3, the column lists passed through for index specifications are now quoted.  The database adaptor needed to be updated to meet this change.
This commit is contained in:
Sam Minnee 2012-06-26 14:35:59 +12:00
parent 0465f1b1a2
commit 22d53b036b

View File

@ -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') {