summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-11-20 08:09:25 +0100
committerAndrey Andreev <narf@bofh.bg>2012-11-20 08:09:25 +0100
commit52e7b2465c42839e95e0c7fa91fb0373d34b7a4e (patch)
tree2e1df199505a41788315f8f76bebd6d83f0a57f0
parent356d4f40d545fb08117ee09da3d3ad8f0746686d (diff)
parentd0822ced040859fea4566f073d997cb87ec54499 (diff)
Merge pull request #2009 from Eco91/patch-2
SQLSRV - Connection error if database name contains space-characters
-rw-r--r--system/database/drivers/sqlsrv/sqlsrv_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/sqlsrv/sqlsrv_driver.php b/system/database/drivers/sqlsrv/sqlsrv_driver.php
index 7346ad275..ee9823ed1 100644
--- a/system/database/drivers/sqlsrv/sqlsrv_driver.php
+++ b/system/database/drivers/sqlsrv/sqlsrv_driver.php
@@ -135,7 +135,7 @@ class CI_DB_sqlsrv_driver extends CI_DB {
$database = $this->database;
}
- if ($this->_execute('USE '.$database))
+ if ($this->_execute('USE '.$this->escape_identifiers($database)))
{
$this->database = $database;
return TRUE;