From e884a1cc312f9a4b0f33ecd3ad2f0ac28f7be4aa Mon Sep 17 00:00:00 2001 From: Nik Rolls Date: Sat, 18 Jan 2014 21:30:27 +1300 Subject: [PATCH] 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). --- code/MSSQLDatabase.php | 1 + 1 file changed, 1 insertion(+) diff --git a/code/MSSQLDatabase.php b/code/MSSQLDatabase.php index 0b93621..6163987 100644 --- a/code/MSSQLDatabase.php +++ b/code/MSSQLDatabase.php @@ -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}"; }