From a1e7c1f9bf606ba7f5e763ce53e35db46ca6b802 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Fri, 15 Jun 2012 13:25:50 +1200 Subject: [PATCH] BUGFIX: Updated MySQLDatabase::indexList() to return index columns escaped by double quotes --- model/MySQLDatabase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/MySQLDatabase.php b/model/MySQLDatabase.php index 0b8a39aa3..0d3324c40 100644 --- a/model/MySQLDatabase.php +++ b/model/MySQLDatabase.php @@ -526,7 +526,7 @@ class MySQLDatabase extends SS_Database { if($groupedIndexes) { foreach($groupedIndexes as $index => $details) { ksort($details['fields']); - $indexList[$index] = $details['type'] . '(' . implode(',',$details['fields']) . ')'; + $indexList[$index] = $details['type'] . '("' . implode('","',$details['fields']) . '")'; } }