Skip to content

Commit

Permalink
Merge pull request bcit-ci#2009 from Eco91/patch-2
Browse files Browse the repository at this point in the history
SQLSRV - Connection error if database name contains space-characters
  • Loading branch information
narfbg committed Nov 20, 2012
2 parents 356d4f4 + d0822ce commit 52e7b24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/database/drivers/sqlsrv/sqlsrv_driver.php
Expand Up @@ -135,7 +135,7 @@ public function db_select($database = '')
$database = $this->database;
}

if ($this->_execute('USE '.$database))
if ($this->_execute('USE '.$this->escape_identifiers($database)))
{
$this->database = $database;
return TRUE;
Expand Down

0 comments on commit 52e7b24

Please sign in to comment.