diff options
author | Andrey Andreev <narf@devilix.net> | 2014-07-01 07:33:30 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-07-01 07:33:30 +0200 |
commit | 60f744bb05b778f33230bb7dc31aeb2b6409e0b2 (patch) | |
tree | 3625d4058f0ad50e31723b155224afd814b8bcfa /system/database/drivers | |
parent | 42183de45621e09621399ee161135f995af552ff (diff) |
Fix #3124
Diffstat (limited to 'system/database/drivers')
-rw-r--r-- | system/database/drivers/mssql/mssql_driver.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/drivers/mssql/mssql_driver.php b/system/database/drivers/mssql/mssql_driver.php index f4a166180..8d830fb51 100644 --- a/system/database/drivers/mssql/mssql_driver.php +++ b/system/database/drivers/mssql/mssql_driver.php @@ -143,8 +143,8 @@ class CI_DB_mssql_driver extends CI_DB { } // Note: Escaping is required in the event that the DB name - // contains reserved characters - if (mssql_select_db($this->escape_identifiers($database), $this->conn_id)) + // contains reserved characters. + if (mssql_select_db('['.$database.']', $this->conn_id)) { $this->database = $database; return TRUE; |