BUGFIX Quoting of database name in MSSQLDatabase->allTablesSQL()

This commit is contained in:
Ingo Schommer 2010-04-29 23:01:33 +00:00
parent 0307d40a61
commit 2329ac93a5

View File

@ -1005,7 +1005,7 @@ class MSSQLDatabase extends SS_Database {
* Returns the SQL command to get all the tables in this database * Returns the SQL command to get all the tables in this database
*/ */
function allTablesSQL(){ function allTablesSQL(){
return "SELECT name FROM {$this->database}..sysobjects WHERE xtype = 'U';"; return "SELECT \"name\" FROM \"{$this->database}\"..sysobjects WHERE \"xtype\" = 'U';";
} }
/** /**