Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #2009 from Eco91/patch-2

SQLSRV - Connection error if database name contains space-characters
  • Loading branch information...
commit 52e7b2465c42839e95e0c7fa91fb0373d34b7a4e 2 parents 356d4f4 + d0822ce
@narfbg narfbg authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.