From 2329ac93a50f21ac586fac0832a6324f01ba060a Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 29 Apr 2010 23:01:33 +0000 Subject: [PATCH] BUGFIX Quoting of database name in MSSQLDatabase->allTablesSQL() --- code/MSSQLDatabase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/MSSQLDatabase.php b/code/MSSQLDatabase.php index 3ffbac5..156f5aa 100644 --- a/code/MSSQLDatabase.php +++ b/code/MSSQLDatabase.php @@ -1005,7 +1005,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 \"{$this->database}\"..sysobjects WHERE \"xtype\" = 'U';"; } /**