From 075f4e53b99bb8d115537c895c58fcb7aa78d325 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 19 May 2010 11:06:35 +0000 Subject: [PATCH] MINOR Code tidy up in MSSQLDatabase --- code/MSSQLDatabase.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/MSSQLDatabase.php b/code/MSSQLDatabase.php index a6bfb65..bd12c7f 100644 --- a/code/MSSQLDatabase.php +++ b/code/MSSQLDatabase.php @@ -987,7 +987,7 @@ class MSSQLDatabase extends SS_Database { * Returns the SQL command to get all the tables in this database */ function allTablesSQL(){ - return "SELECT \"name\" FROM \"{$this->database}\"..sysobjects WHERE \"xtype\" = 'U';"; + return "SELECT \"name\" FROM \"sys\".\"tables\";"; } /** @@ -1134,11 +1134,11 @@ class MSSQLDatabase extends SS_Database { return $value; } - /* + /** * This changes the index name depending on database requirements. - * MSSQL requires commas to be replaced with underscores + * MSSQL requires underscores to be replaced with commas. */ - function modifyIndex($index){ + function modifyIndex($index) { return str_replace('_', ',', $index); }