Browse files

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'
  • Loading branch information...
1 parent 78ca024 commit 2f32890a75f3630cf95467929c3fa7c48f4c8b44 @TedThiCo TedThiCo committed Nov 19, 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 ['.$database.']'))
{
$this->database = $database;
return TRUE;

0 comments on commit 2f32890

Please sign in to comment.