summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEco91 <Emanuel.Kardinal@t-online.de>2012-11-19 15:18:09 +0100
committerEco91 <Emanuel.Kardinal@t-online.de>2012-11-19 15:18:09 +0100
commit2f32890a75f3630cf95467929c3fa7c48f4c8b44 (patch)
tree10aa45fa672d65860dbf24cfb6336081e21be21e
parent78ca0245a5c3ad96c9b0d165d3b666b6e9826a57 (diff)
Update system/database/drivers/sqlsrv/sqlsrv_driver.php
Connection error if database name contains space-characters. Use of MSSQL brackets => 'USE [Database Name]'  instead of 'USE Database Name'
-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..a5024859a 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 ['.$database.']'))
{
$this->database = $database;
return TRUE;