mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
Merge pull request #13 from nikrolls/bug_indexes-not-fully-escaped
BUG: Indexes were not being fully escaped
This commit is contained in:
commit
752664613e
@ -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}";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user