From 6352ea3f1848fd25acd9d927fc077f98a3807a8d Mon Sep 17 00:00:00 2001 From: Geoff Munn Date: Tue, 17 Mar 2009 19:27:15 +0000 Subject: [PATCH] Modify index function created --- code/MSSQLDatabase.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/MSSQLDatabase.php b/code/MSSQLDatabase.php index 1ff55ea..4a583c3 100644 --- a/code/MSSQLDatabase.php +++ b/code/MSSQLDatabase.php @@ -893,6 +893,14 @@ class MSSQLDatabase extends Database { return $value; } + + /* + * This changes the index name depending on database requirements. + * MSSQL requires commas to be replaced with underscores + */ + function modifyIndex($index){ + return str_replace('_', ',', $index); + } } /**