Merge pull request #13 from nikrolls/bug_indexes-not-fully-escaped

BUG: Indexes were not being fully escaped
This commit is contained in:
Sean Harvey 2014-01-20 13:39:45 -08:00
commit 752664613e

View File

@ -924,6 +924,7 @@ class MSSQLDatabase extends SS_Database {
// Cleanup names of namespaced tables // Cleanup names of namespaced tables
$tableName = str_replace('\\', '_', $tableName); $tableName = str_replace('\\', '_', $tableName);
$indexName = str_replace('\\', '_', $indexName);
return "{$prefix}_{$tableName}_{$indexName}"; return "{$prefix}_{$tableName}_{$indexName}";
} }