mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 06:05:53 +00:00
BUG: Indexes were not being fully escaped (the parent table name was, but if the relational table is also namespaced then it would trigger an error).
This commit is contained in:
parent
e3db6f916d
commit
e884a1cc31
@ -924,6 +924,7 @@ class MSSQLDatabase extends SS_Database {
|
||||
|
||||
// Cleanup names of namespaced tables
|
||||
$tableName = str_replace('\\', '_', $tableName);
|
||||
$indexName = str_replace('\\', '_', $indexName);
|
||||
|
||||
return "{$prefix}_{$tableName}_{$indexName}";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user