mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
BUGFIX Quoting of database name in MSSQLDatabase->allTablesSQL()
This commit is contained in:
parent
0307d40a61
commit
2329ac93a5
@ -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';";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user