Browse files

Merge pull request #2009 from Eco91/patch-2

SQLSRV - Connection error if database name contains space-characters
  • Loading branch information...
2 parents 356d4f4 + d0822ce commit 52e7b2465c42839e95e0c7fa91fb0373d34b7a4e @narfbg narfbg committed Nov 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 system/database/drivers/sqlsrv/sqlsrv_driver.php
View
2 system/database/drivers/sqlsrv/sqlsrv_driver.php
@@ -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;

0 comments on commit 52e7b24

Please sign in to comment.