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:
Nik Rolls 2014-01-18 21:30:27 +13:00
parent e3db6f916d
commit e884a1cc31
1 changed files with 1 additions and 0 deletions

View File

@ -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}";
}